Class Resources.AttestorPublicKey (1.36.0)

public static final class Resources.AttestorPublicKey extends GeneratedMessageV3 implements Resources.AttestorPublicKeyOrBuilder

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

Protobuf type google.cloud.binaryauthorization.v1.AttestorPublicKey

Static Fields

ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER

public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

COMMENT_FIELD_NUMBER

public static final int COMMENT_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

PKIX_PUBLIC_KEY_FIELD_NUMBER

public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Resources.AttestorPublicKey getDefaultInstance()
Returns
TypeDescription
Resources.AttestorPublicKey

getDescriptor()

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

newBuilder()

public static Resources.AttestorPublicKey.Builder newBuilder()
Returns
TypeDescription
Resources.AttestorPublicKey.Builder

newBuilder(Resources.AttestorPublicKey prototype)

public static Resources.AttestorPublicKey.Builder newBuilder(Resources.AttestorPublicKey prototype)
Parameter
NameDescription
prototypeResources.AttestorPublicKey
Returns
TypeDescription
Resources.AttestorPublicKey.Builder

parseDelimitedFrom(InputStream input)

public static Resources.AttestorPublicKey parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Resources.AttestorPublicKey
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Resources.AttestorPublicKey parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Resources.AttestorPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Resources.AttestorPublicKey parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Resources.AttestorPublicKey
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Resources.AttestorPublicKey parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Resources.AttestorPublicKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Resources.AttestorPublicKey parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Resources.AttestorPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Resources.AttestorPublicKey> parser()
Returns
TypeDescription
Parser<AttestorPublicKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAsciiArmoredPgpPublicKey()

public String getAsciiArmoredPgpPublicKey()

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
TypeDescription
String

The asciiArmoredPgpPublicKey.

getAsciiArmoredPgpPublicKeyBytes()

public ByteString getAsciiArmoredPgpPublicKeyBytes()

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

The bytes for asciiArmoredPgpPublicKey.

getComment()

public String getComment()

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

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

Returns
TypeDescription
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for comment.

getDefaultInstanceForType()

public Resources.AttestorPublicKey getDefaultInstanceForType()
Returns
TypeDescription
Resources.AttestorPublicKey

getId()

public String getId()

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
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

The bytes for id.

getParserForType()

public Parser<Resources.AttestorPublicKey> getParserForType()
Returns
TypeDescription
Parser<AttestorPublicKey>
Overrides

getPkixPublicKey()

public Resources.PkixPublicKey getPkixPublicKey()

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.v1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
Resources.PkixPublicKey

The pkixPublicKey.

getPkixPublicKeyOrBuilder()

public Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder()

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.v1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
Resources.PkixPublicKeyOrBuilder

getPublicKeyCase()

public Resources.AttestorPublicKey.PublicKeyCase getPublicKeyCase()
Returns
TypeDescription
Resources.AttestorPublicKey.PublicKeyCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAsciiArmoredPgpPublicKey()

public boolean hasAsciiArmoredPgpPublicKey()

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
TypeDescription
boolean

Whether the asciiArmoredPgpPublicKey field is set.

hasPkixPublicKey()

public boolean hasPkixPublicKey()

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.v1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
boolean

Whether the pkixPublicKey field is set.

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 Resources.AttestorPublicKey.Builder newBuilderForType()
Returns
TypeDescription
Resources.AttestorPublicKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Resources.AttestorPublicKey.Builder toBuilder()
Returns
TypeDescription
Resources.AttestorPublicKey.Builder

writeTo(CodedOutputStream output)

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