TpmAttestation Class
- java.
lang. Object - Attestation
- com.
microsoft. azure. sdk. iot. provisioning. service. configs. TpmAttestation
- com.
public class TpmAttestation extends Attestation,Serializable
Representation of a single Device Provisioning Service TPM Attestation.
The provisioning service supports Trusted Platform Module, or TPM, as the device attestation mechanism. User must provide the Endorsement Key, and can, optionally, provide the Storage Root Key.
Constructor Summary
Constructor | Description |
---|---|
TpmAttestation(String endorsementKey) |
CONSTRUCTOR This function will create a new instance of the TPM attestation with the endorsement key. |
TpmAttestation(String endorsementKey, String storageRootKey) |
CONSTRUCTOR This function will create a new instance of the TPM attestation with both endorsement and storage root keys. Only the endorsement key is mandatory. |
TpmAttestation(TpmAttestation tpm) |
CONSTRUCTOR (COPY) This function will create a new instance of the TPM attestation copying the endorsementKey and storageRootKey from the provided attestation. |
Inherited Members
Constructor Details
TpmAttestation
public TpmAttestation(String endorsementKey)
CONSTRUCTOR
This function will create a new instance of the TPM attestation with the endorsement key.
Parameters:
theString
</code> with the TPM endorsement key. It cannot be<code>null
</code> or empty. </p>
Throws:
IllegalArgumentException
- If the endorsementKey isnull
</code> or empty. </p>
TpmAttestation
public TpmAttestation(String endorsementKey, String storageRootKey)
CONSTRUCTOR
This function will create a new instance of the TPM attestation with both endorsement and storage root keys. Only the endorsement key is mandatory.
Parameters:
endorsementKey
- theString
</code> with the TPM endorsement key. It cannot be<code>null
</code> or empty. </p>
storageRootKey
- theString
</code> with the TPM storage root key. It can be<code>null
</code> or empty. </p>
Throws:
IllegalArgumentException
- If the endorsementKey isnull
</code> or empty. </p>
TpmAttestation
public TpmAttestation(TpmAttestation tpm)
CONSTRUCTOR (COPY)
This function will create a new instance of the TPM attestation copying the endorsementKey and storageRootKey from the provided attestation.
Parameters:
tpm
- the originalTpmAttestation
</code> to copy. It cannot be<code>null
</code> . </p>
Throws:
IllegalArgumentException
- if the provided tpm isnull
</code> . </p>
Applies to
Azure SDK for Java