Package org.wildfly.security.credential
Interface X509CertificateChainCredential
-
- All Superinterfaces:
AlgorithmCredential
,Cloneable
,Credential
- All Known Implementing Classes:
AbstractX509CertificateChainCredential
,X509CertificateChainPrivateCredential
,X509CertificateChainPublicCredential
public interface X509CertificateChainCredential extends AlgorithmCredential
A credential which contains an X.509 certificate chain.
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.credential.Credential
NO_CREDENTIALS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description X509CertificateChainCredential
clone()
Creates and returns a copy of thisCredential
.X509Certificate[]
getCertificateChain()
Get a copy of the certificate chain.X509Certificate
getFirstCertificate()
Get the first certificate in the chain.X509Certificate
getLastCertificate()
Get the last certificate in the chain.-
Methods inherited from interface org.wildfly.security.credential.AlgorithmCredential
getAlgorithm, getParameters, getParameters, impliesParameters, impliesSameParameters, matches, matches, matches, supportsParameters, supportsParameters
-
Methods inherited from interface org.wildfly.security.credential.Credential
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, verify, verify
-
-
-
-
Method Detail
-
getCertificateChain
X509Certificate[] getCertificateChain()
Get a copy of the certificate chain.- Returns:
- a copy of the certificate chain
-
getFirstCertificate
X509Certificate getFirstCertificate()
Get the first certificate in the chain. This corresponds to the subject certificate.- Returns:
- the first certificate (not
null
)
-
getLastCertificate
X509Certificate getLastCertificate()
Get the last certificate in the chain. This corresponds to the ultimate issuer certificate.- Returns:
- the last certificate (not
null
)
-
clone
X509CertificateChainCredential clone()
Creates and returns a copy of thisCredential
.- Specified by:
clone
in interfaceAlgorithmCredential
- Specified by:
clone
in interfaceCredential
- Returns:
- a copy of this
Credential
.
-
-