Compartir a través de


TpmAttestation Class

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 endorsementKey.

java.lang.String getStorageRootKey()

Getter for the storageRootKey.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

tpm - the original 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:

endorsementKey - the 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:

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.

Method Details

getEndorsementKey

public String getEndorsementKey()

Getter for the endorsementKey.

Returns:

The String with the stored endorsementKey. It cannot be null or empty.

getStorageRootKey

public String getStorageRootKey()

Getter for the storageRootKey.

Returns:

The String with the stored storageRootKey. It can be null or empty.

Applies to