Interface IdentityEvidenceVerifier
-
- All Known Implementing Classes:
UserPasswordCredentialLoader.ForIdentityLoader
interface IdentityEvidenceVerifier- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName, Supplier<Provider[]> providers)Determine whether a given credential is definitely supported, possibly supported, or definitely not supported.booleanverifyEvidence(Evidence evidence, Supplier<Provider[]> providers)Verify the given evidence against the named credential.default booleanverifyEvidence(Evidence evidence, Supplier<Provider[]> providers, Charset hashCharset)Verify the given evidence against the named credential.
-
-
-
Method Detail
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName, Supplier<Provider[]> providers) throws RealmUnavailableException
Determine whether a given credential is definitely supported, possibly supported, or definitely not supported.- Parameters:
evidenceType- the evidence type (must not benull)algorithmName- the algorithm name, if anyproviders- the providers to use when checking the ability to verify evidence.- Returns:
- the level of support for this credential type
- Throws:
RealmUnavailableException- if the realm is unavailable to verify credentials.
-
verifyEvidence
boolean verifyEvidence(Evidence evidence, Supplier<Provider[]> providers) throws RealmUnavailableException
Verify the given evidence against the named credential.- Parameters:
evidence- the evidence to verify.providers- the providers to use when verifying evidence.- Returns:
trueif the evidence is successfully verified,falseotherwise.- Throws:
RealmUnavailableException- if the realm is unavailable to verify credentials.
-
verifyEvidence
default boolean verifyEvidence(Evidence evidence, Supplier<Provider[]> providers, Charset hashCharset) throws RealmUnavailableException
Verify the given evidence against the named credential.- Parameters:
evidence- the evidence to verify.providers- the providers to use when verifying evidence.hashCharset- the name of the character set (must not benull).- Returns:
trueif the evidence is successfully verified,falseotherwise.- Throws:
RealmUnavailableException- if the realm is unavailable to verify credentials.
-
-