T
- Type of security entity being generated by this factorypublic interface SecurityEntityFactory<T>
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getEntityType() |
T |
getInstance(java.lang.String algorithm) |
static <F> SecurityEntityFactory<F> |
toDefaultFactory(java.lang.Class<F> entityType) |
static <F> SecurityEntityFactory<F> |
toFactory(java.lang.Class<F> entityType,
SecurityProviderChoice registrar,
SecurityProviderChoice defaultProvider)
Uses reflection in order to wrap the
getInstance method(s)
as a security entity factory. |
static <F> SecurityEntityFactory<F> |
toNamedProviderFactory(java.lang.Class<F> entityType,
java.lang.String name) |
static <F> SecurityEntityFactory<F> |
toProviderInstanceFactory(java.lang.Class<F> entityType,
java.security.Provider provider) |
java.lang.Class<T> getEntityType()
T getInstance(java.lang.String algorithm) throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
static <F> SecurityEntityFactory<F> toFactory(java.lang.Class<F> entityType, SecurityProviderChoice registrar, SecurityProviderChoice defaultProvider) throws java.lang.ReflectiveOperationException
getInstance
method(s)
as a security entity factory.F
- Type of entity being generated by the factorentityType
- The entity type classregistrar
- The SecurityProviderRegistrar
to use - if
null
then default provider is used (if specified).defaultProvider
- Default provider choice to use if no registrar
provided. If null
/empty then JCE default is usedSecurityEntityFactory
for the entityjava.lang.ReflectiveOperationException
- If failed to create the factorytoDefaultFactory(Class)
,
toNamedProviderFactory(Class, String)
,
toProviderInstanceFactory(Class, Provider)
,
SecurityProviderChoice.isNamedProviderUsed()
,
SecurityProviderChoice.getSecurityProvider()
static <F> SecurityEntityFactory<F> toDefaultFactory(java.lang.Class<F> entityType) throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationException
static <F> SecurityEntityFactory<F> toNamedProviderFactory(java.lang.Class<F> entityType, java.lang.String name) throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationException
static <F> SecurityEntityFactory<F> toProviderInstanceFactory(java.lang.Class<F> entityType, java.security.Provider provider) throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationException