Class AttestorPublicKey
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
-
- All Implemented Interfaces:
AttestorPublicKeyOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AttestorPublicKey extends com.google.protobuf.GeneratedMessageV3 implements AttestorPublicKeyOrBuilder
An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify attestations signed by this attestor.
Protobuf typegoogle.cloud.binaryauthorization.v1beta1.AttestorPublicKey
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttestorPublicKey.Builder
An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify attestations signed by this attestor.static class
AttestorPublicKey.PublicKeyCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER
static int
COMMENT_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
PKIX_PUBLIC_KEY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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).com.google.protobuf.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).String
getComment()
Optional.com.google.protobuf.ByteString
getCommentBytes()
Optional.static AttestorPublicKey
getDefaultInstance()
AttestorPublicKey
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getId()
The ID of this public key.com.google.protobuf.ByteString
getIdBytes()
The ID of this public key.com.google.protobuf.Parser<AttestorPublicKey>
getParserForType()
PkixPublicKey
getPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.PkixPublicKeyOrBuilder
getPkixPublicKeyOrBuilder()
A raw PKIX SubjectPublicKeyInfo format public key.AttestorPublicKey.PublicKeyCase
getPublicKeyCase()
int
getSerializedSize()
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).int
hashCode()
boolean
hasPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AttestorPublicKey.Builder
newBuilder()
static AttestorPublicKey.Builder
newBuilder(AttestorPublicKey prototype)
AttestorPublicKey.Builder
newBuilderForType()
protected AttestorPublicKey.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AttestorPublicKey
parseDelimitedFrom(InputStream input)
static AttestorPublicKey
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttestorPublicKey
parseFrom(byte[] data)
static AttestorPublicKey
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttestorPublicKey
parseFrom(com.google.protobuf.ByteString data)
static AttestorPublicKey
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttestorPublicKey
parseFrom(com.google.protobuf.CodedInputStream input)
static AttestorPublicKey
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttestorPublicKey
parseFrom(InputStream input)
static AttestorPublicKey
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AttestorPublicKey
parseFrom(ByteBuffer data)
static AttestorPublicKey
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AttestorPublicKey>
parser()
AttestorPublicKey.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COMMENT_FIELD_NUMBER
public static final int COMMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER
public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PKIX_PUBLIC_KEY_FIELD_NUMBER
public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getPublicKeyCase
public AttestorPublicKey.PublicKeyCase getPublicKeyCase()
- Specified by:
getPublicKeyCase
in interfaceAttestorPublicKeyOrBuilder
-
getComment
public String getComment()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getComment
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCommentBytes
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The bytes for comment.
-
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;
- Specified by:
getId
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.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;
- Specified by:
getIdBytes
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The bytes for id.
-
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;
- Specified by:
hasAsciiArmoredPgpPublicKey
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- Whether the asciiArmoredPgpPublicKey field is set.
-
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;
- Specified by:
getAsciiArmoredPgpPublicKey
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The asciiArmoredPgpPublicKey.
-
getAsciiArmoredPgpPublicKeyBytes
public com.google.protobuf.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;
- Specified by:
getAsciiArmoredPgpPublicKeyBytes
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The bytes for asciiArmoredPgpPublicKey.
-
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.v1beta1.PkixPublicKey pkix_public_key = 5;
- Specified by:
hasPkixPublicKey
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- Whether the pkixPublicKey field is set.
-
getPkixPublicKey
public 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.v1beta1.PkixPublicKey pkix_public_key = 5;
- Specified by:
getPkixPublicKey
in interfaceAttestorPublicKeyOrBuilder
- Returns:
- The pkixPublicKey.
-
getPkixPublicKeyOrBuilder
public 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.v1beta1.PkixPublicKey pkix_public_key = 5;
- Specified by:
getPkixPublicKeyOrBuilder
in interfaceAttestorPublicKeyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttestorPublicKey parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttestorPublicKey parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttestorPublicKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttestorPublicKey parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AttestorPublicKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AttestorPublicKey parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AttestorPublicKey parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AttestorPublicKey.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AttestorPublicKey.Builder newBuilder()
-
newBuilder
public static AttestorPublicKey.Builder newBuilder(AttestorPublicKey prototype)
-
toBuilder
public AttestorPublicKey.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttestorPublicKey.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AttestorPublicKey getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AttestorPublicKey> parser()
-
getParserForType
public com.google.protobuf.Parser<AttestorPublicKey> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AttestorPublicKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-