public class TpmAttestation extends Attestation implements Serializable
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)
|
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
.Copyright © 2022. All rights reserved.