com.ibm.security.certclient.util

Class Pk10CertFactory

  1. java.lang.Object
  2. extended bycom.ibm.security.certclient.util.Pk10CertFactory

  1. public final class Pk10CertFactory
  2. extends Object
Generate a certificate from a PKCS10 certificate request and sign it with the provided signer key.

Method Summary

Modifier and Type Method and Description
  1. static
  2. Pk10Certificate
newCert(byte[] pkcs10CertRequestDER,Date notBeforeDate,int validityPeriod,X509Certificate signingCert,PrivateKey signingCertPrivateKey)
Deprecated.
  1. static
  2. Pk10Certificate
newCert(byte[] pkcs10CertRequestDER,Date notBeforeDate,int validityPeriod,X509Certificate signingCert,PrivateKey signingCertPrivateKey,String signatureAlgorithm)
Create a personal certificate from the DER encoded PKCS10 certificate request and sign it with the specified private key.
  1. static
  2. Pk10Certificate
newCert(String pkcs10CertRequestFile,Date notBeforeDate,int validityPeriod,X509Certificate signingCert,PrivateKey signingCertPrivateKey)
Deprecated.
  1. static
  2. Pk10Certificate
newCert(String pkcs10CertRequestFile,Date notBeforeDate,int validityPeriod,X509Certificate signingCert,PrivateKey signingCertPrivateKey,String signatureAlgorithm)
Create a personal certificate from the PKCS10 certificate request file and sign it with the specified private key.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

newCert

  1. @Deprecated
  2. public static Pk10Certificate newCert( String pkcs10CertRequestFile,
  3. Date notBeforeDate,
  4. int validityPeriod,
  5. X509Certificate signingCert,
  6. PrivateKey signingCertPrivateKey)
  7. throws com.ibm.security.certclient.base.PkRejectionException
Deprecated.
Create a personal certificate from the PKCS10 certificate request file and sign it with the specified private key.
Parameters:
pkcs10CertRequestFile - Name of the PKCS10 certificate request file. The contents of the file are BASE64 encoded.
notBeforeDate - The date before which this certificate is not valid
validityPeriod - The validityPeriod of the certificate in days
signingCert - The signing certificate
signingCertPrivateKey - The private key used to sign personal certificate being created. This is the private key associated with public key within the signingCert.
Returns:
a Pk10Certificate object that implements a personal certificate that contains attributes supplied in the PKCS10 certificate request. The certificate is signed by the specified private key.
Throws:
com.ibm.security.certclient.base.PkRejectionException

newCert

  1. @Deprecated
  2. public static Pk10Certificate newCert( byte[] pkcs10CertRequestDER,
  3. Date notBeforeDate,
  4. int validityPeriod,
  5. X509Certificate signingCert,
  6. PrivateKey signingCertPrivateKey)
  7. throws com.ibm.security.certclient.base.PkRejectionException
Deprecated.
Create a personal certificate from the DER encoded PKCS10 certificate request and sign it with the specified private key.
Parameters:
pkcs10CertRequestDER - DER encoded byte array of the PKCS10CertRequest
notBeforeDate - The date before which this certificate is not valid
validityPeriod - The validityPeriod of the certificate in days
signingCert - The signing certificate
signingCertPrivateKey - The private key used to sign personal certificate being created. This is the private key associated with public key within the signingCert.
Returns:
a Pk10Certificate object that implements a personal certificate that contains attributes supplied in the PKCS10 certificate request. The certificate is signed by the specified private key.
Throws:
com.ibm.security.certclient.base.PkRejectionException

newCert

  1. public static Pk10Certificate newCert( String pkcs10CertRequestFile,
  2. Date notBeforeDate,
  3. int validityPeriod,
  4. X509Certificate signingCert,
  5. PrivateKey signingCertPrivateKey,
  6. String signatureAlgorithm)
  7. throws com.ibm.security.certclient.base.PkRejectionException
Create a personal certificate from the PKCS10 certificate request file and sign it with the specified private key.
Parameters:
pkcs10CertRequestFile - Name of the PKCS10 certificate request file. The contents of the file are BASE64 encoded.
notBeforeDate - The date before which this certificate is not valid
validityPeriod - The validityPeriod of the certificate in days
signingCert - The signing certificate
signingCertPrivateKey - The private key used to sign personal certificate being created. This is the private key associated with public key within the signingCert.
signatureAlgorithm - the signature algorithm
Returns:
a Pk10Certificate object that implements a personal certificate that contains attributes supplied in the PKCS10 certificate request. The certificate is signed by the specified private key.
Throws:
com.ibm.security.certclient.base.PkRejectionException

newCert

  1. public static Pk10Certificate newCert( byte[] pkcs10CertRequestDER,
  2. Date notBeforeDate,
  3. int validityPeriod,
  4. X509Certificate signingCert,
  5. PrivateKey signingCertPrivateKey,
  6. String signatureAlgorithm)
  7. throws com.ibm.security.certclient.base.PkRejectionException
Create a personal certificate from the DER encoded PKCS10 certificate request and sign it with the specified private key.
Parameters:
pkcs10CertRequestDER - DER encoded byte array of the PKCS10CertRequest
notBeforeDate - The date before which this certificate is not valid
validityPeriod - The validityPeriod of the certificate in days
signingCert - The signing certificate
signingCertPrivateKey - The private key used to sign personal certificate being created. This is the private key associated with public key within the signingCert.
signatureAlgorithm - the signature algorithm
Returns:
a Pk10Certificate object that implements a personal certificate that contains attributes supplied in the PKCS10 certificate request. The certificate is signed by the specified private key.
Throws:
com.ibm.security.certclient.base.PkRejectionException