Class TpmAttestation (0.5.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.v1alpha1.TpmAttestation

Static Fields

AK_CERT_FIELD_NUMBER

public static final int AK_CERT_FIELD_NUMBER
Field Value
TypeDescription
int

CANONICAL_EVENT_LOG_FIELD_NUMBER

public static final int CANONICAL_EVENT_LOG_FIELD_NUMBER
Field Value
TypeDescription
int

CERT_CHAIN_FIELD_NUMBER

public static final int CERT_CHAIN_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTES_FIELD_NUMBER

public static final int QUOTES_FIELD_NUMBER
Field Value
TypeDescription
int

TCG_EVENT_LOG_FIELD_NUMBER

public static final int TCG_EVENT_LOG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TpmAttestation getDefaultInstance()
Returns
TypeDescription
TpmAttestation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TpmAttestation.Builder newBuilder()
Returns
TypeDescription
TpmAttestation.Builder

newBuilder(TpmAttestation prototype)

public static TpmAttestation.Builder newBuilder(TpmAttestation prototype)
Parameter
NameDescription
prototypeTpmAttestation
Returns
TypeDescription
TpmAttestation.Builder

parseDelimitedFrom(InputStream input)

public static TpmAttestation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TpmAttestation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TpmAttestation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TpmAttestation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TpmAttestation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TpmAttestation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TpmAttestation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpmAttestation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TpmAttestation> parser()
Returns
TypeDescription
Parser<TpmAttestation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<ByteString>

A list containing the certChain.

getDefaultInstanceForType()

public TpmAttestation getDefaultInstanceForType()
Returns
TypeDescription
TpmAttestation

getParserForType()

public Parser<TpmAttestation> getParserForType()
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TpmAttestation.Quote

getQuotesCount()

public int getQuotesCount()

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

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

Returns
TypeDescription
int

getQuotesList()

public List<TpmAttestation.Quote> getQuotesList()

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

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

Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha1.TpmAttestation.Quote quotes = 1;

Returns
TypeDescription
List<? extends com.google.cloud.confidentialcomputing.v1alpha1.TpmAttestation.QuoteOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
ByteString

The tcgEventLog.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TpmAttestation.Builder newBuilderForType()
Returns
TypeDescription
TpmAttestation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TpmAttestation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TpmAttestation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TpmAttestation.Builder toBuilder()
Returns
TypeDescription
TpmAttestation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException