Class NameIDPrincipalSerializer
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.authn.principal.AbstractPrincipalSerializer<String>
net.shibboleth.idp.saml.authn.principal.impl.NameIDPrincipalSerializer
- All Implemented Interfaces:
PrincipalSerializer<String>,Component,DestructableComponent,InitializableComponent
Principal serializer for
NameIDPrincipal.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringField name of Format attribute.private static final PatternPattern used to determine if input is supported.private final org.slf4j.LoggerClass logger.private static final StringField name of NameQualifier attribute.private final SAMLObjectBuilder<NameID>NameID builder.private static final StringField name of principal name.private static final StringField name of SPNameQualifier attribute.private static final StringField name of SPProvidedID attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String value) Deserialize the supplied value.Serialize the supplied principal.booleanWhether the supplied value can be deserialized.booleanWhether the supplied principal can be serialized.Methods inherited from class net.shibboleth.idp.authn.principal.AbstractPrincipalSerializer
getJsonGenerator, getJsonReaderMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
PRINCIPAL_NAME_FIELD
Field name of principal name.- See Also:
-
FORMAT_FIELD
Field name of Format attribute.- See Also:
-
NAME_QUALIFIER_FIELD
Field name of NameQualifier attribute.- See Also:
-
SP_NAME_QUALIFIER_FIELD
Field name of SPNameQualifier attribute.- See Also:
-
SP_PROVIDED_ID_FIELD
Field name of SPProvidedID attribute.- See Also:
-
JSON_PATTERN
Pattern used to determine if input is supported. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
nameIDBuilder
NameID builder.
-
-
Constructor Details
-
NameIDPrincipalSerializer
public NameIDPrincipalSerializer()Constructor.
-
-
Method Details
-
supports
Whether the supplied principal can be serialized.- Parameters:
principal- to examine- Returns:
- whether principal can be serialized
-
serialize
Serialize the supplied principal.- Parameters:
principal- to serialize- Returns:
- serialized value
- Throws:
IOException- if an error occurs during serialization
-
supports
Whether the supplied value can be deserialized.- Parameters:
value- to examine- Returns:
- whether value can be deserialized
-
deserialize
Deserialize the supplied value.- Parameters:
value- to deserialize- Returns:
- principal
- Throws:
IOException- if an error occurs during deserialization
-