Class X509EvidenceVerifier
- java.lang.Object
-
- org.wildfly.security.auth.realm.ldap.X509EvidenceVerifier
-
- All Implemented Interfaces:
EvidenceVerifier
class X509EvidenceVerifier extends Object implements EvidenceVerifier
AnEvidenceVerifierthat verifies aX509PeerCertificateChainEvidence.- Author:
- Jan Kalina
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceX509EvidenceVerifier.CertificateVerifierObject allowing to verify X509 certificate against information from LDAP(package private) static classX509EvidenceVerifier.DigestCertificateVerifier(package private) static classX509EvidenceVerifier.EncodedCertificateVerifier(package private) static classX509EvidenceVerifier.SerialNumberCertificateVerifier(package private) static classX509EvidenceVerifier.SubjectDnCertificateVerifier
-
Field Summary
Fields Modifier and Type Field Description private List<X509EvidenceVerifier.CertificateVerifier>certificateVerifiers
-
Constructor Summary
Constructors Constructor Description X509EvidenceVerifier(List<X509EvidenceVerifier.CertificateVerifier> certificateVerifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinaryIdentityAttributes(Collection<String> attributes)Construct set of LDAP attributes, which should be loaded as binary data.voidaddRequiredIdentityAttributes(Collection<String> attributes)Construct set of LDAP attributes, which should be loaded as part of the identity from identity entry.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
forIdentity
-
-
-
-
Field Detail
-
certificateVerifiers
private final List<X509EvidenceVerifier.CertificateVerifier> certificateVerifiers
-
-
Constructor Detail
-
X509EvidenceVerifier
X509EvidenceVerifier(List<X509EvidenceVerifier.CertificateVerifier> certificateVerifiers)
-
-
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
-
addRequiredIdentityAttributes
public void addRequiredIdentityAttributes(Collection<String> attributes)
Description copied from interface:EvidenceVerifierConstruct set of LDAP attributes, which should be loaded as part of the identity from identity entry.- Specified by:
addRequiredIdentityAttributesin interfaceEvidenceVerifier- Parameters:
attributes- output collection of attributes names, into which should be added
-
addBinaryIdentityAttributes
public void addBinaryIdentityAttributes(Collection<String> attributes)
Description copied from interface:EvidenceVerifierConstruct set of LDAP attributes, which should be loaded as binary data. Should be subset ofEvidenceVerifier.addRequiredIdentityAttributes(Collection)output.- Specified by:
addBinaryIdentityAttributesin interfaceEvidenceVerifier- Parameters:
attributes- output collection of attributes names, into which should be added
-
-