Package org.wildfly.security.evidence
Class X509PeerCertificateChainEvidence
- java.lang.Object
- 
- org.wildfly.security.evidence.X509PeerCertificateChainEvidence
 
- 
- All Implemented Interfaces:
- AlgorithmEvidence,- Evidence
 
 public final class X509PeerCertificateChainEvidence extends Object implements AlgorithmEvidence A piece of evidence that is comprised of a verified peer certificate chain.
- 
- 
Constructor SummaryConstructors Constructor Description X509PeerCertificateChainEvidence(X509Certificate... peerCertificateChain)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAlgorithm()Get the certificate public key algorithm.PrincipalgetDecodedPrincipal()Get thePrincipalderived from this evidence using an evidence decoder (may benull).X500PrincipalgetDefaultPrincipal()Get the defaultPrincipalassociated with this evidence (may benull).X509CertificategetFirstCertificate()Get the first certificate in the peer certificate chain.X509CertificategetLastCertificate()Get the last certificate in the peer certificate chain.X509Certificate[]getPeerCertificateChain()Get the peer certificate chain.X500PrincipalgetPrincipal()Deprecated.UsegetDefaultPrincipal()orgetDecodedPrincipal()instead.voidsetDecodedPrincipal(Principal decodedPrincipal)Set thePrincipalderived from this evidence using an evidence decoder (may benull).- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.wildfly.security.evidence.AlgorithmEvidencecastAndApply
 - 
Methods inherited from interface org.wildfly.security.evidence.EvidencecastAndApply, castAs, castAs
 
- 
 
- 
- 
- 
Constructor Detail- 
X509PeerCertificateChainEvidencepublic X509PeerCertificateChainEvidence(X509Certificate... peerCertificateChain) Construct a new instance.- Parameters:
- peerCertificateChain- the peer certificate chain to use (must not be- null)
 
 
- 
 - 
Method Detail- 
getPrincipal@Deprecated public X500Principal getPrincipal() Deprecated.UsegetDefaultPrincipal()orgetDecodedPrincipal()instead.Get thePrincipalrepresented by the first certificate in the chain.- Specified by:
- getPrincipalin interface- Evidence
- Returns:
- the Principalrepresented by the first certificate in the chain.
 
 - 
getDefaultPrincipalpublic X500Principal getDefaultPrincipal() Description copied from interface:EvidenceGet the defaultPrincipalassociated with this evidence (may benull).- Specified by:
- getDefaultPrincipalin interface- Evidence
- Returns:
- the default Principalassociated with this evidence (may benull)
 
 - 
getDecodedPrincipalpublic Principal getDecodedPrincipal() Description copied from interface:EvidenceGet thePrincipalderived from this evidence using an evidence decoder (may benull).- Specified by:
- getDecodedPrincipalin interface- Evidence
- Returns:
- the Principalderived from this evidence using an evidence decoder (may benull)
 
 - 
setDecodedPrincipalpublic void setDecodedPrincipal(Principal decodedPrincipal) 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 interface- Evidence
- Parameters:
- decodedPrincipal- the principal derived from this evidence using an evidence decoder (may be- null)
 
 - 
getPeerCertificateChainpublic X509Certificate[] getPeerCertificateChain() Get the peer certificate chain.- Returns:
- the peer certificate chain (not null)
 
 - 
getAlgorithmpublic String getAlgorithm() Get the certificate public key algorithm.- Specified by:
- getAlgorithmin interface- AlgorithmEvidence
- Returns:
- the certificate public key algorithm (not null)
 
 - 
getFirstCertificatepublic X509Certificate getFirstCertificate() Get the first certificate in the peer certificate chain.- Returns:
- the first certificate in the peer certificate chain
 
 - 
getLastCertificatepublic X509Certificate getLastCertificate() Get the last certificate in the peer certificate chain.- Returns:
- the last certificate in the peer certificate chain
 
 
- 
 
-