Package org.wildfly.security.credential
Interface X509CertificateChainCredential
- All Superinterfaces:
AlgorithmCredential,Cloneable,Credential
- All Known Implementing Classes:
X509CertificateChainPrivateCredential,X509CertificateChainPublicCredential
A credential which contains an X.509 certificate chain.
-
Field Summary
Fields inherited from interface org.wildfly.security.credential.Credential
NO_CREDENTIALS -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of thisCredential.Get a copy of the certificate chain.Get the first certificate in the chain.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, supportsParametersMethods inherited from interface org.wildfly.security.credential.Credential
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, verify, verify
-
Method Details
-
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:
clonein interfaceAlgorithmCredential- Specified by:
clonein interfaceCredential- Returns:
- a copy of this
Credential.
-