AttestationMechanism Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. AttestationMechanism
- com.
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. |
Attestation |
getType()
Getter for the type. |
Methods inherited from java.lang.Object
Constructor Details
AttestationMechanism
public AttestationMechanism(Attestation attestation)
CONSTRUCTOR
It will create a new instance of the AttestationMechanism for the provided attestation type.
Parameters:
Attestation
with the TPM keys, X509 certificates or Symmetric Keys. It cannot be null
.
AttestationMechanism
public AttestationMechanism(String json)
Parameters:
Method Details
getAttestation
public Attestation getAttestation()
Getter for the Attestation.
Returns:
null
.Throws:
getType
public AttestationMechanismType getType()
Getter for the type.
Returns:
null
.Applies to
Azure SDK for Java