X509CertificateInfo Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. X509CertificateInfo
- com.
public class X509CertificateInfo
Representation of a single X509 Certificate Info for the Device Provisioning Service.
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
}
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | X509CertificateInfo() |
Empty constructor |
X509CertificateInfo(X509CertificateInfo x509CertificateInfo) |
Constructor [COPY] |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIssuerName()
Getter for the issuer |
java.util.Date |
getNotAfterUtc()
Getter for the not |
java.util.Date |
getNotBeforeUtc()
Getter for the not |
java.lang.String |
getSerialNumber()
Getter for the serial |
java.lang.String |
getSha1Thumbprint()
Getter for the sha1Thumbprint. |
java.lang.String |
getSha256Thumbprint()
Getter for the sha256Thumbprint. |
java.lang.String |
getSubjectName()
Getter for the subject |
java.lang.Integer |
getVersion()
Getter for the version. |
Methods inherited from java.lang.Object
Constructor Details
X509CertificateInfo
protected X509CertificateInfo()
Empty constructor
Used only by the tools that will deserialize this class.
X509CertificateInfo
public X509CertificateInfo(X509CertificateInfo x509CertificateInfo)
Constructor [COPY]
Creates a new instance of the x509CertificateInfo copping the content of the provided one.
Parameters:
x509CertificateInfo
to copy.
Method Details
getIssuerName
public String getIssuerName()
Getter for the issuerName.
Returns:
String
with the stored issuerName. It can be null
or empty.getNotAfterUtc
public Date getNotAfterUtc()
Getter for the notAfterUtc.
Returns:
Date
with the stored notAfterUtc. It can be null
.getNotBeforeUtc
public Date getNotBeforeUtc()
Getter for the notBeforeUtc.
Returns:
Date
with the stored notBeforeUtc. It can be null
.getSerialNumber
public String getSerialNumber()
Getter for the serialNumber.
Returns:
String
with the stored serialNumber. It can be null
or empty.getSha1Thumbprint
public String getSha1Thumbprint()
Getter for the sha1Thumbprint.
Returns:
String
with the stored sha1Thumbprint. It can be null
or empty.getSha256Thumbprint
public String getSha256Thumbprint()
Getter for the sha256Thumbprint.
Returns:
String
with the stored sha256Thumbprint. It can be null
or empty.getSubjectName
public String getSubjectName()
Getter for the subjectName.
Returns:
String
with the stored subjectName. It can be null
or empty.getVersion
public Integer getVersion()
Getter for the version.
Returns:
Integer
with the stored version. It can be null
.Applies to
Azure SDK for Java