Package org.wildfly.security.evidence
Class X509PeerCertificateChainEvidence
java.lang.Object
org.wildfly.security.evidence.X509PeerCertificateChainEvidence
- All Implemented Interfaces:
AlgorithmEvidence,Evidence
A piece of evidence that is comprised of a verified peer certificate chain.
-
Constructor Summary
ConstructorsConstructorDescriptionX509PeerCertificateChainEvidence(X509Certificate... peerCertificateChain) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate public key algorithm.Get thePrincipalderived from this evidence using an evidence decoder (may benull).Get the defaultPrincipalassociated with this evidence (may benull).Get the first certificate in the peer certificate chain.Get the last certificate in the peer certificate chain.Get the peer certificate chain.Deprecated.voidsetDecodedPrincipal(Principal decodedPrincipal) Set thePrincipalderived from this evidence using an evidence decoder (may benull).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.evidence.AlgorithmEvidence
castAndApplyMethods inherited from interface org.wildfly.security.evidence.Evidence
castAndApply, castAs, castAs
-
Constructor Details
-
X509PeerCertificateChainEvidence
Construct a new instance.- Parameters:
peerCertificateChain- the peer certificate chain to use (must not benull)
-
-
Method Details
-
getPrincipal
Deprecated.UsegetDefaultPrincipal()orgetDecodedPrincipal()instead.Get thePrincipalrepresented by the first certificate in the chain.- Specified by:
getPrincipalin interfaceEvidence- Returns:
- the
Principalrepresented by the first certificate in the chain.
-
getDefaultPrincipal
Description copied from interface:EvidenceGet the defaultPrincipalassociated with this evidence (may benull).- Specified by:
getDefaultPrincipalin interfaceEvidence- Returns:
- the default
Principalassociated with this evidence (may benull)
-
getDecodedPrincipal
Description copied from interface:EvidenceGet thePrincipalderived from this evidence using an evidence decoder (may benull).- Specified by:
getDecodedPrincipalin interfaceEvidence- Returns:
- the
Principalderived from this evidence using an evidence decoder (may benull)
-
setDecodedPrincipal
Description copied from interface:EvidenceSet thePrincipalderived from this evidence using an evidence decoder (may benull). This method is a no-op by default. It is intended to be implemented by evidence types that can be associated with a principal derived from an evidence decoder.- Specified by:
setDecodedPrincipalin interfaceEvidence- Parameters:
decodedPrincipal- the principal derived from this evidence using an evidence decoder (may benull)
-
getPeerCertificateChain
Get the peer certificate chain.- Returns:
- the peer certificate chain (not
null)
-
getAlgorithm
Get the certificate public key algorithm.- Specified by:
getAlgorithmin interfaceAlgorithmEvidence- Returns:
- the certificate public key algorithm (not
null)
-
getFirstCertificate
Get the first certificate in the peer certificate chain.- Returns:
- the first certificate in the peer certificate chain
-
getLastCertificate
Get the last certificate in the peer certificate chain.- Returns:
- the last certificate in the peer certificate chain
-
getDefaultPrincipal()orgetDecodedPrincipal()instead.