public final class AttestationMechanism extends Object implements Serializable
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 and Description |
---|
AttestationMechanism(Attestation attestation)
CONSTRUCTOR
|
AttestationMechanism(String json) |
Modifier and Type | Method and Description |
---|---|
Attestation |
getAttestation()
Getter for the Attestation.
|
public AttestationMechanism(Attestation attestation)
It will create a new instance of the AttestationMechanism for the provided attestation type.
attestation
- the Attestation
with the TPM keys, X509 certificates or Symmetric Keys. It cannot be null
.IllegalArgumentException
- If the provided tpm is null
.public AttestationMechanism(String json)
public Attestation getAttestation() throws ProvisioningServiceClientException
Attestation
that contains one of the stored Attestation. It cannot be null
.ProvisioningServiceClientException
- If the type of the attestation mechanism is unknown.Copyright © 2022. All rights reserved.