public abstract class InternalConfiguration extends Configuration
| Constructor and Description |
|---|
InternalConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static InternalConfiguration |
createFromPrimitiveRegistry(PrimitiveRegistry registry) |
abstract Class<?> |
getInputPrimitiveClass(Class<?> wrapperClassObject)
Given the target class, reveals primitive set of what type should be provided to the
InternalConfiguration.wrap method in order to get a wrapped object of the target class. |
abstract <P> P |
getPrimitive(Key key,
Class<P> primitiveClass)
Given a key and a desired primitive class, creates the required primitive.
|
abstract <B,P> P |
wrap(PrimitiveSet<B> primitiveSet,
Class<P> clazz)
Wraps the primitives in the primitive set into the provided class.
|
public abstract <P> P getPrimitive(Key key, Class<P> primitiveClass) throws GeneralSecurityException
GeneralSecurityExceptionpublic abstract <B,P> P wrap(PrimitiveSet<B> primitiveSet, Class<P> clazz) throws GeneralSecurityException
GeneralSecurityException - if the wrapper for the provided pair
(input class, wrapped class) is not registeredpublic abstract Class<?> getInputPrimitiveClass(Class<?> wrapperClassObject) throws GeneralSecurityException
InternalConfiguration.wrap method in order to get a wrapped object of the target class.GeneralSecurityExceptionpublic static InternalConfiguration createFromPrimitiveRegistry(PrimitiveRegistry registry)