Class TokenIdentity.IdentityXmlAdapter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Identity>
dev.orne.beans.TokenIdentity.IdentityXmlAdapter
Enclosing class:
TokenIdentity

@API(status=INTERNAL, since="0.1") public static class TokenIdentity.IdentityXmlAdapter extends XmlAdapter<String,Identity>
JAXB adapter for Identity that converts Identity instances to and from String using the identity token as String representation.
  • Constructor Details

    • IdentityXmlAdapter

      public IdentityXmlAdapter()
      Creates a new instance.
  • Method Details

    • unmarshal

      public TokenIdentity unmarshal(String value)
      Parses specified String as a TokenIdentity instance.
      Specified by:
      unmarshal in class XmlAdapter<String,Identity>
      Parameters:
      value - The value to be converted. Can be null
      Returns:
      The resulting TokenIdentity instance
    • marshal

      public String marshal(Identity identity)
      Serializes specified Identity as a String value.
      Specified by:
      marshal in class XmlAdapter<String,Identity>
      Parameters:
      identity - The value to be converted. Can be null
      Returns:
      The resulting String instance