public class X509CertificateInfo extends Object
User receive this info from the provisioning service as result of X509 operations.
This info contains a set of parameters, The following JSON is an example of the X509 certificate info.
{
"subjectName": "CN=ROOT_00000000-0000-0000-0000-000000000000, OU=Azure IoT, O=MSFT, C=US",
"sha1Thumbprint": "0000000000000000000000000000000000",
"sha256Thumbprint": "validEnrollmentGroupId",
"issuerName": "CN=ROOT_00000000-0000-0000-0000-000000000000, OU=Azure IoT, O=MSFT, C=US",
"notBeforeUtc": "2017-11-14T12:34:182Z",
"notAfterUtc": "2017-11-20T12:34:183Z",
"serialNumber": "000000000000000000",
"version": 3
}
| Modifier | Constructor and Description |
|---|---|
protected |
X509CertificateInfo()
Empty constructor
|
|
X509CertificateInfo(X509CertificateInfo x509CertificateInfo)
Constructor [COPY]
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIssuerName()
Getter for the issuerName.
|
Date |
getNotAfterUtc()
Getter for the notAfterUtc.
|
Date |
getNotBeforeUtc()
Getter for the notBeforeUtc.
|
String |
getSerialNumber()
Getter for the serialNumber.
|
String |
getSha1Thumbprint()
Getter for the sha1Thumbprint.
|
String |
getSha256Thumbprint()
Getter for the sha256Thumbprint.
|
String |
getSubjectName()
Getter for the subjectName.
|
Integer |
getVersion()
Getter for the version.
|
public X509CertificateInfo(X509CertificateInfo x509CertificateInfo)
Creates a new instance of the x509CertificateInfo copping the content of the provided one.
x509CertificateInfo - the original x509CertificateInfo to copy.IllegalArgumentException - if the provided x509CertificateInfo is null.protected X509CertificateInfo()
Used only by the tools that will deserialize this class.
public String getSubjectName()
String with the stored subjectName. It can be null or empty.public String getSha1Thumbprint()
String with the stored sha1Thumbprint. It can be null or empty.public String getSha256Thumbprint()
String with the stored sha256Thumbprint. It can be null or empty.public String getIssuerName()
String with the stored issuerName. It can be null or empty.public Date getNotBeforeUtc()
Date with the stored notBeforeUtc. It can be null.public Date getNotAfterUtc()
Date with the stored notAfterUtc. It can be null.public String getSerialNumber()
String with the stored serialNumber. It can be null or empty.public Integer getVersion()
Integer with the stored version. It can be null.Copyright © 2021. All rights reserved.