Class TpmAttestation (0.28.0)

public final class TpmAttestation extends GeneratedMessageV3 implements TpmAttestationOrBuilder

TPM2 data containing everything necessary to validate any platform state measured into the TPM.

Protobuf type google.cloud.confidentialcomputing.v1.TpmAttestation

Static Fields

AK_CERT_FIELD_NUMBER

public static final int AK_CERT_FIELD_NUMBER
Field Value
Type Description
int

CANONICAL_EVENT_LOG_FIELD_NUMBER

public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER
Field Value
Type Description
int

CERT_CHAIN_FIELD_NUMBER

public static final int CERT_CHAIN_FIELD_NUMBER
Field Value
Type Description
int

QUOTES_FIELD_NUMBER

public static final int QUOTES_FIELD_NUMBER
Field Value
Type Description
int

TCG_EVENT_LOG_FIELD_NUMBER

public static final int TCG_EVENT_LOG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TpmAttestation getDefaultInstance()
Returns
Type Description
TpmAttestation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TpmAttestation.Builder newBuilder()
Returns
Type Description
TpmAttestation.Builder

newBuilder(TpmAttestation prototype)

public static TpmAttestation.Builder newBuilder(TpmAttestation prototype)
Parameter
Name Description
prototype TpmAttestation
Returns
Type Description
TpmAttestation.Builder

parseDelimitedFrom(InputStream input)

public static TpmAttestation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TpmAttestation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TpmAttestation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TpmAttestation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TpmAttestation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TpmAttestation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TpmAttestation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TpmAttestation> parser()
Returns
Type Description
Parser<TpmAttestation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAkCert()

public ByteString getAkCert()

DER-encoded X.509 certificate of the Attestation Key (otherwise known as an AK or a TPM restricted signing key) used to generate the quotes.

bytes ak_cert = 4;

Returns
Type Description
ByteString

The akCert.

getCanonicalEventLog()

public ByteString getCanonicalEventLog()

An Event Log containing additional events measured into the TPM that are not already present in the tcg_event_log. Formatted as described in the "Canonical Event Log Format" TCG Specification.

bytes canonical_event_log = 3;

Returns
Type Description
ByteString

The canonicalEventLog.

getCertChain(int index)

public ByteString getCertChain(int index)

List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes cert_chain = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The certChain at the given index.

getCertChainCount()

public int getCertChainCount()

List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes cert_chain = 5;

Returns
Type Description
int

The count of certChain.

getCertChainList()

public List<ByteString> getCertChainList()

List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes cert_chain = 5;

Returns
Type Description
List<ByteString>

A list containing the certChain.

getDefaultInstanceForType()

public TpmAttestation getDefaultInstanceForType()
Returns
Type Description
TpmAttestation

getParserForType()

public Parser<TpmAttestation> getParserForType()
Returns
Type Description
Parser<TpmAttestation>
Overrides

getQuotes(int index)

public TpmAttestation.Quote getQuotes(int index)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.Quote

getQuotesCount()

public int getQuotesCount()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
int

getQuotesList()

public List<TpmAttestation.Quote> getQuotesList()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
List<Quote>

getQuotesOrBuilder(int index)

public TpmAttestation.QuoteOrBuilder getQuotesOrBuilder(int index)

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Parameter
Name Description
index int
Returns
Type Description
TpmAttestation.QuoteOrBuilder

getQuotesOrBuilderList()

public List<? extends TpmAttestation.QuoteOrBuilder> getQuotesOrBuilderList()

TPM2 PCR Quotes generated by calling TPM2_Quote on each PCR bank.

repeated .google.cloud.confidentialcomputing.v1.TpmAttestation.Quote quotes = 1;

Returns
Type Description
List<? extends com.google.cloud.confidentialcomputing.v1.TpmAttestation.QuoteOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTcgEventLog()

public ByteString getTcgEventLog()

The binary TCG Event Log containing events measured into the TPM by the platform firmware and operating system. Formatted as described in the "TCG PC Client Platform Firmware Profile Specification".

bytes tcg_event_log = 2;

Returns
Type Description
ByteString

The tcgEventLog.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TpmAttestation.Builder newBuilderForType()
Returns
Type Description
TpmAttestation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TpmAttestation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TpmAttestation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TpmAttestation.Builder toBuilder()
Returns
Type Description
TpmAttestation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException