T
- Type of security entity being generated by this factorypublic interface SecurityEntityFactory<T>
Modifier and Type | Method and Description |
---|---|
Class<T> |
getEntityType() |
T |
getInstance(String algorithm) |
static <F> SecurityEntityFactory<F> |
toDefaultFactory(Class<F> entityType) |
static <F> SecurityEntityFactory<F> |
toFactory(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(Class<F> entityType,
String name) |
static <F> SecurityEntityFactory<F> |
toProviderInstanceFactory(Class<F> entityType,
Provider provider) |
T getInstance(String algorithm) throws GeneralSecurityException
GeneralSecurityException
static <F> SecurityEntityFactory<F> toFactory(Class<F> entityType, SecurityProviderChoice registrar, SecurityProviderChoice defaultProvider) throws 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 entityReflectiveOperationException
- If failed to create the factorytoDefaultFactory(Class)
,
toNamedProviderFactory(Class, String)
,
toProviderInstanceFactory(Class, Provider)
,
SecurityProviderChoice.isNamedProviderUsed()
,
SecurityProviderChoice.getSecurityProvider()
static <F> SecurityEntityFactory<F> toDefaultFactory(Class<F> entityType) throws ReflectiveOperationException
ReflectiveOperationException
static <F> SecurityEntityFactory<F> toNamedProviderFactory(Class<F> entityType, String name) throws ReflectiveOperationException
ReflectiveOperationException
static <F> SecurityEntityFactory<F> toProviderInstanceFactory(Class<F> entityType, Provider provider) throws ReflectiveOperationException
ReflectiveOperationException
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.