Interface IdentityCredentialLoader
-
- All Known Subinterfaces:
IdentityCredentialPersister
- All Known Implementing Classes:
OtpCredentialLoader.ForIdentityLoader
,UserPasswordCredentialLoader.ForIdentityLoader
interface IdentityCredentialLoader
ACredentialLoader
for loading credentials stored in LDAP directory. Implementations of this interface are instantiated for a specific identity, as a result all of the methods on this interface are specific to that identity.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec, Supplier<Provider[]> providers)
Acquire a credential of the given type.SupportLevel
getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec, Supplier<Provider[]> providers)
Determine whether a given credential is definitely supported, possibly supported, or definitely not supported.
-
-
-
Method Detail
-
getCredentialAcquireSupport
SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec, Supplier<Provider[]> providers)
Determine whether a given credential is definitely supported, possibly supported, or definitely not supported.- Parameters:
credentialType
- the credential type (must not benull
)algorithmName
- the credential algorithm name, if anyparameterSpec
- the algorithm parameters to match, ornull
if any parameters are acceptable or the credential type does not support algorithm parametersproviders
- the providers to use when checking ability to obtain the credential- Returns:
- the level of support for this credential type
-
getCredential
<C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec, Supplier<Provider[]> providers)
Acquire a credential of the given type.- Type Parameters:
C
- the type to which should be credential casted- Parameters:
credentialType
- the credential type (must not benull
)algorithmName
- the credential algorithm name, if anyparameterSpec
- the algorithm parameters to match, ornull
if any parameters are acceptable or the credential type does not support algorithm parametersproviders
- the providers to use when obtaining the credential- Returns:
- the credential, or
null
if the principal has no credential of that name or cannot be casted to that type
-
-