Class AttestorPublicKey (1.18.0)

publicfinalclass AttestorPublicKeyextendsGeneratedMessageV3implementsAttestorPublicKeyOrBuilder

An attestor public key that will be used to verify attestations signed by this attestor.

Protobuf type google.cloud.binaryauthorization.v1beta1.AttestorPublicKey

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER

publicstaticfinalintASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER
Field Value
Type Description
int

COMMENT_FIELD_NUMBER

publicstaticfinalintCOMMENT_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

publicstaticfinalintID_FIELD_NUMBER
Field Value
Type Description
int

PKIX_PUBLIC_KEY_FIELD_NUMBER

publicstaticfinalintPKIX_PUBLIC_KEY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAttestorPublicKeygetDefaultInstance()
Returns
Type Description
AttestorPublicKey

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAttestorPublicKey.BuildernewBuilder()
Returns
Type Description
AttestorPublicKey.Builder

newBuilder(AttestorPublicKey prototype)

publicstaticAttestorPublicKey.BuildernewBuilder(AttestorPublicKeyprototype)
Parameter
Name Description
prototype AttestorPublicKey
Returns
Type Description
AttestorPublicKey.Builder

parseDelimitedFrom(InputStream input)

publicstaticAttestorPublicKeyparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAttestorPublicKeyparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAttestorPublicKeyparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAttestorPublicKeyparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAttestorPublicKeyparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAttestorPublicKeyparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAttestorPublicKeyparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttestorPublicKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AttestorPublicKey>parser()
Returns
Type Description
Parser<AttestorPublicKey>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAsciiArmoredPgpPublicKey()

publicStringgetAsciiArmoredPgpPublicKey()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
Type Description
String

The asciiArmoredPgpPublicKey.

getAsciiArmoredPgpPublicKeyBytes()

publicByteStringgetAsciiArmoredPgpPublicKeyBytes()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
Type Description
ByteString

The bytes for asciiArmoredPgpPublicKey.

getComment()

publicStringgetComment()

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The comment.

getCommentBytes()

publicByteStringgetCommentBytes()

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for comment.

getDefaultInstanceForType()

publicAttestorPublicKeygetDefaultInstanceForType()
Returns
Type Description
AttestorPublicKey

getId()

publicStringgetId()

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getParserForType()

publicParser<AttestorPublicKey>getParserForType()
Returns
Type Description
Parser<AttestorPublicKey>
Overrides

getPkixPublicKey()

publicPkixPublicKeygetPkixPublicKey()

A raw PKIX SubjectPublicKeyInfo format public key.

NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
PkixPublicKey

The pkixPublicKey.

getPkixPublicKeyOrBuilder()

publicPkixPublicKeyOrBuildergetPkixPublicKeyOrBuilder()

A raw PKIX SubjectPublicKeyInfo format public key.

NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
PkixPublicKeyOrBuilder

getPublicKeyCase()

publicAttestorPublicKey.PublicKeyCasegetPublicKeyCase()
Returns
Type Description
AttestorPublicKey.PublicKeyCase

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasAsciiArmoredPgpPublicKey()

publicbooleanhasAsciiArmoredPgpPublicKey()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
Type Description
boolean

Whether the asciiArmoredPgpPublicKey field is set.

hasPkixPublicKey()

publicbooleanhasPkixPublicKey()

A raw PKIX SubjectPublicKeyInfo format public key.

NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
boolean

Whether the pkixPublicKey field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAttestorPublicKey.BuildernewBuilderForType()
Returns
Type Description
AttestorPublicKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAttestorPublicKey.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AttestorPublicKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAttestorPublicKey.BuildertoBuilder()
Returns
Type Description
AttestorPublicKey.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.