Interface EvidenceVerifier
-
- All Known Implementing Classes:
DirectEvidenceVerifier
,X509EvidenceVerifier
interface EvidenceVerifier
An individual evidence verifier to associate with an LDAPSecurityRealm
, multiple verifiers can be associated with the realm allowing for different verification strategies to be applied to different named credentials.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addBinaryIdentityAttributes(Collection<String> attributes)
Construct set of LDAP attributes, which should be loaded as binary data.default void
addRequiredIdentityAttributes(Collection<String> attributes)
Construct set of LDAP attributes, which should be loaded as part of the identity from identity entry.IdentityEvidenceVerifier
forIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes)
Obtain anIdentityEvidenceVerifier
to verify the evidence for a specific identity.default IdentityEvidenceVerifier
forIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes, Encoding hashEncoding)
Obtain anIdentityEvidenceVerifier
to verify the evidence for a specific identity.SupportLevel
getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)
Get theSupportLevel
for the level of evidence validation support for the named credential.
-
-
-
Method Detail
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
Get theSupportLevel
for the level of evidence validation support for the named credential.- Parameters:
evidenceType
- the evidence type (must not benull
)algorithmName
- the evidence algorithm name ornull
if none- Returns:
- the level of support for the named credential
- Throws:
RealmUnavailableException
- if the realm is currently unable to handle requests
-
forIdentity
IdentityEvidenceVerifier forIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes) throws RealmUnavailableException
Obtain anIdentityEvidenceVerifier
to verify the evidence for a specific identity. Note: By this point referrals relating to the identity should have been resolved so theDirContextFactory
should be suitable for use with the supplieddistinguishedName
- Parameters:
dirContext
- theDirContext
to use to connect to LDAP.distinguishedName
- the distinguished name of the identity entry.url
- the absolute distinguished name of identity LDAP entry as URL string (when identity is not in realm context)attributes
- the identity attributes requested byaddRequiredIdentityAttributes(Collection)
.- Returns:
- An
IdentityEvidenceVerifier
for the specified identity identified by their distinguished name. - Throws:
RealmUnavailableException
-
forIdentity
default IdentityEvidenceVerifier forIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes, Encoding hashEncoding) throws RealmUnavailableException
Obtain anIdentityEvidenceVerifier
to verify the evidence for a specific identity. Note: By this point referrals relating to the identity should have been resolved so theDirContextFactory
should be suitable for use with the supplieddistinguishedName
- Parameters:
dirContext
- theDirContext
to use to connect to LDAP.distinguishedName
- the distinguished name of the identity entry.url
- the absolute distinguished name of identity LDAP entry as URL string (when identity is not in realm context)attributes
- the identity attributes requested byaddRequiredIdentityAttributes(Collection)
.hashEncoding
- specifies the string format for the hashed password- Returns:
- An
IdentityEvidenceVerifier
for the specified identity identified by their distinguished name. - Throws:
RealmUnavailableException
-
addRequiredIdentityAttributes
default void addRequiredIdentityAttributes(Collection<String> attributes)
Construct set of LDAP attributes, which should be loaded as part of the identity from identity entry.- Parameters:
attributes
- output collection of attributes names, into which should be added
-
addBinaryIdentityAttributes
default void addBinaryIdentityAttributes(Collection<String> attributes)
Construct set of LDAP attributes, which should be loaded as binary data. Should be subset ofaddRequiredIdentityAttributes(Collection)
output.- Parameters:
attributes
- output collection of attributes names, into which should be added
-
-