Megosztás a következőn keresztül:


X509CertificateInfo Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.service.configs.X509CertificateInfo

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 issuerName.

java.util.Date getNotAfterUtc()

Getter for the notAfterUtc.

java.util.Date getNotBeforeUtc()

Getter for the notBeforeUtc.

java.lang.String getSerialNumber()

Getter for the serialNumber.

java.lang.String getSha1Thumbprint()

Getter for the sha1Thumbprint.

java.lang.String getSha256Thumbprint()

Getter for the sha256Thumbprint.

java.lang.String getSubjectName()

Getter for the subjectName.

java.lang.Integer getVersion()

Getter for the version.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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 - the original x509CertificateInfo to copy.

Method Details

getIssuerName

public String getIssuerName()

Getter for the issuerName.

Returns:

the String with the stored issuerName. It can be null or empty.

getNotAfterUtc

public Date getNotAfterUtc()

Getter for the notAfterUtc.

Returns:

the Date with the stored notAfterUtc. It can be null.

getNotBeforeUtc

public Date getNotBeforeUtc()

Getter for the notBeforeUtc.

Returns:

the Date with the stored notBeforeUtc. It can be null.

getSerialNumber

public String getSerialNumber()

Getter for the serialNumber.

Returns:

the String with the stored serialNumber. It can be null or empty.

getSha1Thumbprint

public String getSha1Thumbprint()

Getter for the sha1Thumbprint.

Returns:

the String with the stored sha1Thumbprint. It can be null or empty.

getSha256Thumbprint

public String getSha256Thumbprint()

Getter for the sha256Thumbprint.

Returns:

the String with the stored sha256Thumbprint. It can be null or empty.

getSubjectName

public String getSubjectName()

Getter for the subjectName.

Returns:

the String with the stored subjectName. It can be null or empty.

getVersion

public Integer getVersion()

Getter for the version.

Returns:

the Integer with the stored version. It can be null.

Applies to