Class AbstractPrincipalSerializer<Type>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.authn.principal.AbstractPrincipalSerializer<Type>
-
- Type Parameters:
Type
- generic type of serialization
- All Implemented Interfaces:
PrincipalSerializer<Type>
,Component
,DestructableComponent
,InitializableComponent
- Direct Known Subclasses:
AuthenticationResultPrincipalSerializer
,GenericPrincipalSerializer
,IdPAttributePrincipalSerializer
,LDAPPrincipalSerializer
,NameIDPrincipalSerializer
,ProxyAuthenticationPrincipalSerializer
,SimplePrincipalSerializer
,X500PrincipalSerializer
@ThreadSafe public abstract class AbstractPrincipalSerializer<Type> extends AbstractInitializableComponent implements PrincipalSerializer<Type>
Base class forPrincipalSerializer
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.json.stream.JsonGeneratorFactory
generatorFactory
JSON generator factory.private javax.json.JsonReaderFactory
readerFactory
JSON reader factory.
-
Constructor Summary
Constructors Constructor Description AbstractPrincipalSerializer()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.json.stream.JsonGenerator
getJsonGenerator(Writer writer)
Get aJsonGenerator
, synchronized for thread-safety.protected javax.json.JsonReader
getJsonReader(Reader reader)
Get aJsonReader
, synchronized for thread-safety.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Methods inherited from interface net.shibboleth.idp.authn.principal.PrincipalSerializer
deserialize, serialize, supports, supports
-
-
-
-
Method Detail
-
getJsonGenerator
@Nonnull protected javax.json.stream.JsonGenerator getJsonGenerator(@Nonnull Writer writer)
Get aJsonGenerator
, synchronized for thread-safety.- Parameters:
writer
- destination for output- Returns:
- a generator
-
getJsonReader
@Nonnull protected javax.json.JsonReader getJsonReader(@Nonnull Reader reader)
Get aJsonReader
, synchronized for thread-safety.- Parameters:
reader
- source of input- Returns:
- a reader
-
-