AttestationMechanism Class

  • java.lang.Object
    • java.io.Serializable
      • Serializable
        • com.microsoft.azure.sdk.iot.provisioning.service.configs.AttestationMechanism

public class AttestationMechanism extends Serializable

Representation of a single Device Provisioning Service Attestation mechanism in the IndividualEnrollment and EnrollmentGroup.

It is an internal class that converts one of the attestations into JSON format. To configure the attestation mechanism, see the external API Attestation.

Constructor Summary

Constructor Description
AttestationMechanism(Attestation attestation)

CONSTRUCTOR

It will create a new instance of the AttestationMechanism for the provided attestation type.

AttestationMechanism(String json)

Method Summary

Modifier and Type Method and Description
Attestation getAttestation()

Getter for the Attestation.

Inherited Members

Constructor Details

AttestationMechanism

public AttestationMechanism(Attestation attestation)

CONSTRUCTOR

It will create a new instance of the AttestationMechanism for the provided attestation type.

Parameters:

attestation -

theAttestation 

</code> with the TPM keys, X509 certificates or Symmetric Keys. It cannot be<code>null 

</code> . </p>

Throws:

IllegalArgumentException -

If the provided tpm isnull 

</code> . </p>

AttestationMechanism

public AttestationMechanism(String json)

Parameters:

json

Method Details

getAttestation

public Attestation getAttestation()

Getter for the Attestation.

Returns:

the Attestation that contains one of the stored Attestation. It cannot benull 

</code> . </p>

Throws:

ProvisioningServiceClientException - If the type of the attestation mechanism is unknown.

Applies to