public class BasicX509Credential extends BasicCredential implements X509Credential
X509Credential
.Constructor and Description |
---|
BasicX509Credential(X509Certificate entityCertificate)
Constructor.
|
BasicX509Credential(X509Certificate entityCertificate,
PrivateKey privateKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
Collection<X509CRL> |
getCRLs()
Gets a collection of CRLs associated with the credential.
|
X509Certificate |
getEntityCertificate()
Gets the public key certificate for the entity.
|
Collection<X509Certificate> |
getEntityCertificateChain()
Gets an immutable collection of certificates in the entity's trust chain.
|
PublicKey |
getPublicKey()
Gets the public key for the entity.
|
SecretKey |
getSecretKey()
This operation is unsupported for X.509 credentials.
|
void |
setCRLs(Collection<X509CRL> newCRLs)
Sets the CRLs for this credential.
|
void |
setEntityCertificate(X509Certificate newEntityCertificate)
Sets the entity certificate for this credential.
|
void |
setEntityCertificateChain(Collection<X509Certificate> newCertificateChain)
Sets the entity certificate chain for this credential.
|
void |
setPublicKey(PublicKey newPublicKey)
This operation is unsupported for X.509 credentials.
|
void |
setSecretKey(SecretKey newSecretKey)
This operation is unsupported for X.509 credentials.
|
setEntityId, setPrivateKey, setUsageType
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getUsageType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getUsageType
public BasicX509Credential(@Nonnull X509Certificate entityCertificate)
entityCertificate
- the credential entity certificatepublic BasicX509Credential(@Nonnull X509Certificate entityCertificate, @Nonnull PrivateKey privateKey)
entityCertificate
- the credential entity certificateprivateKey
- the credential private key@Nonnull public Class<? extends Credential> getCredentialType()
Credential
implemented by an implementation.getCredentialType
in interface Credential
getCredentialType
in class BasicCredential
@Nullable public Collection<X509CRL> getCRLs()
getCRLs
in interface X509Credential
public void setCRLs(@Nullable Collection<X509CRL> newCRLs)
newCRLs
- CRLs for this credential@Nonnull public X509Certificate getEntityCertificate()
Credential.getPublicKey()
.getEntityCertificate
in interface X509Credential
public void setEntityCertificate(@Nonnull X509Certificate newEntityCertificate)
newEntityCertificate
- entity certificate for this credential@Nonnull public PublicKey getPublicKey()
getPublicKey
in interface Credential
getPublicKey
in class AbstractCredential
public void setPublicKey(PublicKey newPublicKey)
setPublicKey
in interface MutableCredential
setPublicKey
in class BasicCredential
newPublicKey
- not supported@Nonnull public Collection<X509Certificate> getEntityCertificateChain()
getEntityCertificateChain
in interface X509Credential
public void setEntityCertificateChain(@Nonnull Collection<X509Certificate> newCertificateChain)
newCertificateChain
- entity certificate chain for this credential@Nullable public SecretKey getSecretKey()
getSecretKey
in interface Credential
getSecretKey
in class AbstractCredential
public void setSecretKey(SecretKey newSecretKey)
setSecretKey
in interface MutableCredential
setSecretKey
in class BasicCredential
newSecretKey
- unsupportedCopyright © 2016 JBoss by Red Hat. All rights reserved.