Package dev.orne.beans
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 Summary
-
Method Summary
-
Constructor Details
-
IdentityXmlAdapter
public IdentityXmlAdapter()Creates a new instance.
-
-
Method Details
-
unmarshal
Parses specifiedString
as aTokenIdentity
instance.- Specified by:
unmarshal
in classXmlAdapter<String,
Identity> - Parameters:
value
- The value to be converted. Can be null- Returns:
- The resulting
TokenIdentity
instance
-
marshal
Serializes specifiedIdentity
as aString
value.- Specified by:
marshal
in classXmlAdapter<String,
Identity> - Parameters:
identity
- The value to be converted. Can be null- Returns:
- The resulting
String
instance
-