Interface PrincipalSerializer<Type>
- Type Parameters:
Type
- the type of object handled
- All Superinterfaces:
Component
,InitializableComponent
- All Known Implementing Classes:
AbstractPrincipalSerializer
,AuthenticationResultPrincipalSerializer
,GenericPrincipalSerializer
,IdPAttributePrincipalSerializer
,LDAPPrincipalSerializer
,NameIDPrincipalSerializer
,ProxyAuthenticationPrincipalSerializer
,SealedPrincipalSerializer
,SimplePrincipalSerializer
,X500PrincipalSerializer
Interface for the serialization/deserialization of principals.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(Type value) Deserialize the supplied value.Serialize the supplied principal.boolean
Whether the supplied principal can be serialized.boolean
Whether the supplied value can be deserialized.Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
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
-