public class CertFactory extends Object
CertFactory holds methods for creating Certificate objects and
sub classes like X509Certificate.| Constructor and Description |
|---|
CertFactory() |
| Modifier and Type | Method and Description |
|---|---|
static X509Certificate |
newX509Certificate(PublicKey publicKey,
PrivateKey privateKey,
BigInteger serialNumber,
String subject,
String issuer,
String signatureAlgorithm,
Date start,
Date end)
Factory method for creating a new
X509Certificate object from the given parameters. |
static X509Certificate |
newX509Certificate(String type,
byte[] certificateData)
Factory method for creating a new
X509Certificate from the given certificate type and
certificate data as byte array. |
public static X509Certificate newX509Certificate(String type, byte[] certificateData) throws CertificateException
X509Certificate from the given certificate type and
certificate data as byte array.type - the certificate typecertificateData - the certificate data as byte arrayX509CertificateCertificateException - is thrown if no Provider supports a CertificateFactorySpi implementation for the
given certificate type.public static X509Certificate newX509Certificate(PublicKey publicKey, PrivateKey privateKey, BigInteger serialNumber, String subject, String issuer, String signatureAlgorithm, Date start, Date end) throws Exception
X509Certificate object from the given parameters.publicKey - the public keyprivateKey - the private keyserialNumber - the serial numbersubject - the subjectissuer - the issuersignatureAlgorithm - the signature algorithmstart - the startend - the endX509Certificate objectException - is thrown if if a security error occurCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.