AttestationMechanism Class
- java.
lang. Object - java.
io. Serializable - Serializable
- com.
microsoft. azure. sdk. iot. provisioning. service. configs. AttestationMechanism
- com.
- java.
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:
theAttestation
</code> with the TPM keys, X509 certificates or Symmetric Keys. It cannot be<code>null
</code> . </p>
Throws:
If the provided tpm isnull
</code> . </p>
AttestationMechanism
public AttestationMechanism(String json)
Parameters:
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for