Package org.wildfly.security.credential
Class X509CertificateChainPrivateCredential
- java.lang.Object
-
- org.wildfly.security.credential.AbstractX509CertificateChainCredential
-
- org.wildfly.security.credential.X509CertificateChainPrivateCredential
-
- All Implemented Interfaces:
Cloneable
,AlgorithmCredential
,Credential
,X509CertificateChainCredential
public final class X509CertificateChainPrivateCredential extends AbstractX509CertificateChainCredential
A credential containing a private key and an X.509 certificate chain.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private PrivateKey
privateKey
-
Fields inherited from class org.wildfly.security.credential.AbstractX509CertificateChainCredential
certificateChain
-
Fields inherited from interface org.wildfly.security.credential.Credential
NO_CREDENTIALS
-
-
Constructor Summary
Constructors Constructor Description X509CertificateChainPrivateCredential(PrivateKey privateKey, X509Certificate... certificateChain)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificateChainPrivateCredential
clone()
Creates and returns a copy of thisCredential
.boolean
equals(Object obj)
private boolean
equals(X509CertificateChainPrivateCredential obj)
PrivateKey
getPrivateKey()
Get the private key.int
hashCode()
-
Methods inherited from class org.wildfly.security.credential.AbstractX509CertificateChainCredential
canVerify, getAlgorithm, getCertificateChain, getFirstCertificate, getLastCertificate, getParameters, impliesSameParameters, supportsParameters, verify, verify
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.credential.AlgorithmCredential
getParameters, impliesParameters, matches, matches, matches, supportsParameters
-
Methods inherited from interface org.wildfly.security.credential.Credential
canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs
-
-
-
-
Field Detail
-
privateKey
private final PrivateKey privateKey
-
-
Constructor Detail
-
X509CertificateChainPrivateCredential
public X509CertificateChainPrivateCredential(PrivateKey privateKey, X509Certificate... certificateChain)
Construct a new instance.- Parameters:
privateKey
- the private key (notnull
)certificateChain
- the certificate chain (notnull
, cannot containnull
elements)
-
-
Method Detail
-
getPrivateKey
public PrivateKey getPrivateKey()
Get the private key.- Returns:
- the private key
-
clone
public X509CertificateChainPrivateCredential clone()
Description copied from interface:X509CertificateChainCredential
Creates and returns a copy of thisCredential
.- Specified by:
clone
in interfaceAlgorithmCredential
- Specified by:
clone
in interfaceCredential
- Specified by:
clone
in interfaceX509CertificateChainCredential
- Specified by:
clone
in classAbstractX509CertificateChainCredential
- Returns:
- a copy of this
Credential
.
-
equals
private boolean equals(X509CertificateChainPrivateCredential obj)
-
-