Class DirectEvidenceVerifier
- java.lang.Object
 - 
- org.wildfly.security.auth.realm.ldap.DirectEvidenceVerifier
 
 
- 
- All Implemented Interfaces:
 EvidenceVerifier
class DirectEvidenceVerifier extends Object implements EvidenceVerifier
AnEvidenceVerifierthat verifies a guess by using it to connect to LDAP.- Author:
 - Darran Lofthouse
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private booleanallowBlankPassword 
- 
Constructor Summary
Constructors Constructor Description DirectEvidenceVerifier(boolean allowBlankPassword) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentityEvidenceVerifierforIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes)Obtain anIdentityEvidenceVerifierto verify the evidence for a specific identity.SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)Get theSupportLevelfor the level of evidence validation support for the named credential.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.wildfly.security.auth.realm.ldap.EvidenceVerifier
addBinaryIdentityAttributes, addRequiredIdentityAttributes, forIdentity 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getEvidenceVerifySupport
public SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
Description copied from interface:EvidenceVerifierGet theSupportLevelfor the level of evidence validation support for the named credential.- Specified by:
 getEvidenceVerifySupportin interfaceEvidenceVerifier- Parameters:
 evidenceType- the evidence type (must not benull)algorithmName- the evidence algorithm name ornullif none- Returns:
 - the level of support for the named credential
 - Throws:
 RealmUnavailableException- if the realm is currently unable to handle requests
 
- 
forIdentity
public IdentityEvidenceVerifier forIdentity(DirContext dirContext, String distinguishedName, String url, Attributes attributes) throws RealmUnavailableException
Description copied from interface:EvidenceVerifierObtain anIdentityEvidenceVerifierto verify the evidence for a specific identity. Note: By this point referrals relating to the identity should have been resolved so theDirContextFactoryshould be suitable for use with the supplieddistinguishedName- Specified by:
 forIdentityin interfaceEvidenceVerifier- Parameters:
 dirContext- theDirContextto 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 byEvidenceVerifier.addRequiredIdentityAttributes(Collection).- Returns:
 - An 
IdentityEvidenceVerifierfor the specified identity identified by their distinguished name. - Throws:
 RealmUnavailableException
 
 - 
 
 -