public class TpmAttestation extends 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 and Description |
|---|
TpmAttestation(String endorsementKey)
CONSTRUCTOR
|
TpmAttestation(String endorsementKey,
String storageRootKey)
CONSTRUCTOR
|
TpmAttestation(TpmAttestation tpm)
CONSTRUCTOR (COPY)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndorsementKey()
Getter for the endorsementKey.
|
String |
getStorageRootKey()
Getter for the storageRootKey.
|
public TpmAttestation(String endorsementKey, String storageRootKey)
This function will create a new instance of the TPM attestation with both endorsement and storage root keys. Only the endorsement key is mandatory.
endorsementKey - the String with the TPM endorsement key. It cannot be null or empty.storageRootKey - the String with the TPM storage root key. It can be null or empty.IllegalArgumentException - If the endorsementKey is null or empty.public TpmAttestation(String endorsementKey)
This function will create a new instance of the TPM attestation with the endorsement key.
endorsementKey - the String with the TPM endorsement key. It cannot be null or empty.IllegalArgumentException - If the endorsementKey is null or empty.public TpmAttestation(TpmAttestation tpm)
This function will create a new instance of the TPM attestation copying the endorsementKey and storageRootKey from the provided attestation.
tpm - the original TpmAttestation to copy. It cannot be null.IllegalArgumentException - if the provided tpm is null.public String getEndorsementKey()
String with the stored endorsementKey. It cannot be null or empty.public String getStorageRootKey()
String with the stored storageRootKey. It can be null or empty.Copyright © 2021. All rights reserved.