public class EntrustP10CertReqInfo extends EntrustPKIXCMPInjectedCertReqInfo
EntrustP10CertRetriever to request issuance of unmanaged end user
certificates from an Entrust Authority Security Manager (EASM) that supports
PKIX-CMP in Administrator Authenticated (AA) mode (Supported on EASM 7.1
patch 96478 or later).
The data structure contains the following components:
For details on AA-mode (Administrator Authenticate mode) and supported
extensions, please refer to the class documentation of
EntrustPKIXCMPInjectedCertReqInfo.
EntrustP10CertRetriever| Constructor and Description |
|---|
EntrustP10CertReqInfo(CertificateRequest p10CertReq,
EntrustCertInfoId certDefnId)
The constructor; creates a
EntrustP10CertReqInfo object
from a PKCS 10 certificate request and a certificate definition
identifier. |
EntrustP10CertReqInfo(CertificateRequest p10CertReq,
java.lang.String certDefnName)
The constructor; creates a
EntrustP10CertReqInfo object
from a PKCS 10 certificate request and a certificate definition
identifier. |
EntrustP10CertReqInfo(java.security.PublicKey publicKey,
EntrustCertInfoId certDefnId,
X509Extensions x509Extensions)
The constructor; creates a
EntrustP10CertReqInfo object
from a public key and a certificate definition identifier. |
EntrustP10CertReqInfo(java.security.PublicKey publicKey,
java.lang.String certDefnName,
X509Extensions x509Extensions)
The constructor; creates a
EntrustP10CertReqInfo object
from a public key and a certificate definition name. |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCACertificate()
Returns the CA certificate when available for the Certificate Authority
that the user exists on.
|
java.util.List<X509Certificate> |
getIntermediateCACertificates()
Returns the intermediate CA certificates when available, for the
Certificate Authorities that are needed to build a certificate path from
the user's CA to the root CA.
|
X509Certificate |
getRootCACertificate()
Returns the CA certificate when available for the Certificate Authority
that is the root of trust for the user.
|
X509Certificate |
getUserCertificate()
Returns the end user certificate that was issued by an Entrust Authority
Security Manager for the public key.
|
getCertDefnId, getOptionalValidity, getPKIArchiveOptions, getPOPOSigningKey, getPrivateKey, getPublicKey, getX509Extensions, setOptionalValidity, setPKIArchiveOptions, setPOPOSigningKey, setPrivateKey, setPublicKey, setX509Extensionspublic EntrustP10CertReqInfo(java.security.PublicKey publicKey,
java.lang.String certDefnName,
X509Extensions x509Extensions)
EntrustP10CertReqInfo object
from a public key and a certificate definition name.
Identification of which certificate definition the certificate request corresponds to is required by the EASM. In this case, the certificate definition name is used (Ex: 'Encryption', 'Verification', 'Dual Usage'...).
Proof of possession of the private key that corresponds to the provided public key is not (and cannot) be enforced by this API; it is the responsibility of the caller to check and enforce proof of possession.
publicKey - the public key that is being certifiedcertDefnName - the name of the certificate definition that the public key
corresponds tox509Extensions - requested X.509 extensions (OPTIONAL)java.lang.IllegalArgumentException - if the public key or certificate definition name are
nullpublic EntrustP10CertReqInfo(java.security.PublicKey publicKey,
EntrustCertInfoId certDefnId,
X509Extensions x509Extensions)
EntrustP10CertReqInfo object
from a public key and a certificate definition identifier.
Identification of which certificate definition the certificate request corresponds to is required by the EASM. In this case, the certificate definition identifier is used (consists of a certificate definition ID and name).
Proof of possession of the private key that corresponds to the provided public key is not (and cannot) be enforced by this API; it is the responsibility of the caller to check and enforce proof of possession.
publicKey - the public key that is being certifiedcertDefnId - the certificate definition identifier for the certificate
definition that the public key corresponds tox509Extensions - requested X.509 extensions (OPTIONAL)java.lang.IllegalArgumentException - if the public key or certificate definition identifier are
nullpublic EntrustP10CertReqInfo(CertificateRequest p10CertReq, java.lang.String certDefnName)
EntrustP10CertReqInfo object
from a PKCS 10 certificate request and a certificate definition
identifier.
The P10 certificate request MUST be self-signed; signed using the private key that corresponds to the public key contained in the request. This demonstrates proof of possession of the private key (ensures that the client actually possess the key pair for which certification is being requested). The public key and any requested X.509 extensions are extracted from the P10 certificate request; all other information contained in P10 certificate request is ignored.
Identification of which certificate definition the certificate request corresponds to is required by the EASM. In this case, the certificate definition name is used (Ex: 'Encryption', 'Verification', 'Dual Usage'...).
In P10, X.509 extensions can be requested by including a P9
extensionRequest attribute in the P10 certificate request.
An extensionRequest attribute value contains the requested
X509Extensions in ASN.1 format.
p10CertReq - a PKCS 10 certificate requires containing the public key that
is being certified and any requested X.509 extensionscertDefnName - the name of the certificate definition that the public key
corresponds tojava.lang.IllegalArgumentException - if any of the parameters are null (all parameters are
required), if signature verification for the P10 request
fails (not self-signed), or if the P10 request contains
improperly encoded/formatted X.509 extensionspublic EntrustP10CertReqInfo(CertificateRequest p10CertReq, EntrustCertInfoId certDefnId)
EntrustP10CertReqInfo object
from a PKCS 10 certificate request and a certificate definition
identifier.
The P10 certificate request MUST be self-signed; signed using the private key that corresponds to the public key contained in the request. This demonstrates proof of possession of the private key (ensures that the client actually possess the key pair for which certification is being requested). The public key and any requested X.509 extensions are extracted from the P10 certificate request; all other information contained in P10 certificate request is ignored.
Identification of which certificate definition the certificate request corresponds to is required by the EASM. In this case, the certificate definition identifier is used (consists of a certificate definition ID and name).
In P10, X.509 extensions can be requested by including a P9
extensionRequest attribute in the P10 certificate request.
An extensionRequest attribute value contains the requested
X509Extensions in ASN.1 format.
p10CertReq - a PKCS 10 certificate requires containing the public key that
is being certified and any requested X.509 extensionscertDefnId - the certificate definition identifier for the certificate
definition that the public key corresponds tojava.lang.IllegalArgumentException - if any of the parameters are null (all parameters are
required), if signature verification for the P10 request
fails (not self-signed), or if the P10 request contains
improperly encoded/formatted X.509 extensionspublic X509Certificate getUserCertificate()
public X509Certificate getCACertificate()
public X509Certificate getRootCACertificate()
public java.util.List<X509Certificate> getIntermediateCACertificates()
List of
X509Certificate objects