public final class X509PeerCertificateChainEvidence extends Object implements AlgorithmEvidence
| Constructor and Description |
|---|
X509PeerCertificateChainEvidence(X509Certificate... peerCertificateChain)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Get the certificate public key algorithm.
|
Principal |
getDecodedPrincipal()
Get the
Principal derived from this evidence using an evidence decoder (may be null). |
X500Principal |
getDefaultPrincipal()
Get the default
Principal associated with this evidence (may be null). |
X509Certificate |
getFirstCertificate()
Get the first certificate in the peer certificate chain.
|
X509Certificate |
getLastCertificate()
Get the last certificate in the peer certificate chain.
|
X509Certificate[] |
getPeerCertificateChain()
Get the peer certificate chain.
|
X500Principal |
getPrincipal()
Deprecated.
Use
getDefaultPrincipal() or getDecodedPrincipal() instead. |
void |
setDecodedPrincipal(Principal decodedPrincipal)
Set the
Principal derived from this evidence using an evidence decoder (may be null). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcastAndApplycastAndApply, castAs, castAspublic X509PeerCertificateChainEvidence(X509Certificate... peerCertificateChain)
peerCertificateChain - the peer certificate chain to use (must not be null)@Deprecated public X500Principal getPrincipal()
getDefaultPrincipal() or getDecodedPrincipal() instead.Principal represented by the first certificate in the chain.getPrincipal in interface EvidencePrincipal represented by the first certificate in the chain.public X500Principal getDefaultPrincipal()
EvidencePrincipal associated with this evidence (may be null).getDefaultPrincipal in interface EvidencePrincipal associated with this evidence (may benull)public Principal getDecodedPrincipal()
EvidencePrincipal derived from this evidence using an evidence decoder (may be null).getDecodedPrincipal in interface EvidencePrincipal derived from this evidence using an evidence decoder (may be null)public void setDecodedPrincipal(Principal decodedPrincipal)
EvidencePrincipal derived from this evidence using an evidence decoder (may be null).
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.setDecodedPrincipal in interface EvidencedecodedPrincipal - the principal derived from this evidence using an evidence decoder (may be null)public X509Certificate[] getPeerCertificateChain()
null)public String getAlgorithm()
getAlgorithm in interface AlgorithmEvidencenull)public X509Certificate getFirstCertificate()
public X509Certificate getLastCertificate()
Copyright © 2019 JBoss by Red Hat. All rights reserved.