AttestationMechanism Class

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

public final class AttestationMechanism

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

AttestationMechanism(String json)

Method Summary

Modifier and Type Method and Description
Attestation getAttestation()

Getter for the Attestation.

AttestationMechanismType getType()

Getter for the type.

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

AttestationMechanism

public AttestationMechanism(Attestation attestation)

CONSTRUCTOR

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

Parameters:

attestation - the Attestation with the TPM keys, X509 certificates or Symmetric Keys. It cannot be null.

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 be null.

Throws:

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

getType

public AttestationMechanismType getType()

Getter for the type.

Returns:

the AttestationMechanismType that contains the stored type. It cannot be null.

Applies to