TpmAttestation Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. Attestation - com.
microsoft. azure. sdk. iot. provisioning. service. configs. TpmAttestation
- com.
- com.
public class TpmAttestation
extends Attestation
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(TpmAttestation tpm) |
CONSTRUCTOR (COPY) |
TpmAttestation(String endorsementKey) |
CONSTRUCTOR |
TpmAttestation(String endorsementKey, String storageRootKey) |
CONSTRUCTOR |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEndorsementKey()
Getter for the endorsement |
java.lang.String |
getStorageRootKey()
Getter for the storage |
Methods inherited from java.lang.Object
Constructor Details
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:
TpmAttestation
to copy. It cannot be null
.
TpmAttestation
public TpmAttestation(String endorsementKey)
CONSTRUCTOR
This function will create a new instance of the TPM attestation with the endorsement key.
Parameters:
String
with the TPM endorsement key. It cannot be null
or empty.
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:
String
with the TPM endorsement key. It cannot be null
or empty.
String
with the TPM storage root key. It can be null
or empty.
Method Details
getEndorsementKey
public String getEndorsementKey()
Getter for the endorsementKey.
Returns:
String
with the stored endorsementKey. It cannot be null
or empty.getStorageRootKey
public String getStorageRootKey()
Getter for the storageRootKey.
Returns:
String
with the stored storageRootKey. It can be null
or empty.Applies to
Azure SDK for Java