public static class CertificateResponse.X509Certificate extends Object
| Constructor and Description | 
|---|
| X509Certificate(String subjectCn,
               String issuerCn,
               int version,
               String serialNumber,
               String signatureAlgoName,
               String signature,
               Instant notBefore,
               Instant notAfter,
               String issuer,
               String subject,
               String publicKeyAlgo,
               int publicKeyLength,
               String rsaPublicKeyModulus,
               int rsaPublicKeyExponent,
               String sha1Hash,
               String md5Hash,
               boolean isCa,
               boolean isValid)Instantiates a new x509 certificate. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getIssuer()Gets issuer. | 
| String | getIssuerCn()Gets issuerCn. | 
| String | getMd5Hash()Gets md5Hash. | 
| Instant | getNotAfter()Gets notAfter. | 
| Instant | getNotBefore()Gets notBefore. | 
| String | getPublicKeyAlgo()Gets publicKeyAlgo. | 
| int | getPublicKeyLength()Gets publicKeyLength. | 
| int | getRsaPublicKeyExponent()Gets rsaPublicKeyExponent. | 
| String | getRsaPublicKeyModulus()Gets rsaPublicKeyModulus. | 
| String | getSerialNumber()Gets serialNumber. | 
| String | getSha1Hash()Gets sha1Hash. | 
| String | getSignature()Gets signature. | 
| String | getSignatureAlgoName()Gets signatureAlgo | 
| String | getSubject()Gets subject. | 
| String | getSubjectCn()Gets subjectCn. | 
| int | getVersion()Gets version. | 
| boolean | isCa()Gets isCa. | 
| boolean | isValid()Gets isValid. | 
public X509Certificate(String subjectCn, String issuerCn, int version, String serialNumber, String signatureAlgoName, String signature, Instant notBefore, Instant notAfter, String issuer, String subject, String publicKeyAlgo, int publicKeyLength, String rsaPublicKeyModulus, int rsaPublicKeyExponent, String sha1Hash, String md5Hash, boolean isCa, boolean isValid)
subjectCn - the subject cnissuerCn - the issuer cnversion - the versionserialNumber - the serial numbersignatureAlgoName - the signature algorithmsignature - the signaturenotBefore - the not beforenotAfter - the not afterissuer - the issuersubject - the subjectpublicKeyAlgo - the public key algorithmpublicKeyLength - the public key lengthrsaPublicKeyModulus - the rsa public key modulusrsaPublicKeyExponent - the rsa public key exponentsha1Hash - the sha1 hashmd5Hash - the md5 hashisCa - the is caisValid - the is validpublic String getSubjectCn()
The subject common name
String the subjectCnpublic String getIssuerCn()
The issuer common name
String the issuerCnpublic int getVersion()
The version of the certificate
public String getSerialNumber()
The serial number for the Certificate
String the serialNumberpublic String getSignatureAlgoName()
The name of the algorithm for the certificate signature.
String the signatureAlgopublic String getSignature()
The signature in its raw DER encoded format
String the signaturepublic Instant getNotBefore()
Returns the date that this certificate is not to be used before
Instant the notBeforepublic Instant getNotAfter()
Returns the date that this certificate is not to be used after
Instant the notAfterpublic String getIssuer()
The name of the entity that has signed and issued the certificate.
String the issuerpublic String getSubject()
The name of the subject
String the subjectpublic String getPublicKeyAlgo()
The public key algorithm
String the publicKeyAlgopublic int getPublicKeyLength()
The maximum length of the public key
public String getRsaPublicKeyModulus()
The RSA public key modulus
String the rsaPublicKeyModuluspublic int getRsaPublicKeyExponent()
The RSA public key exponent
public String getSha1Hash()
The 160-bit secure hash algorithm 1
String the sha1Hashpublic String getMd5Hash()
The 128-bit message-digest 5 algorithm
String the md5Hashpublic boolean isCa()
Whether or not the subject of the certificate is a CA
public boolean isValid()
Whether or not the certificate is valid
Copyright © 2020 iland Internet Solutions, Corp. All rights reserved.