Interface AttestorPublicKeyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AttestorPublicKey, AttestorPublicKey.Builder

    public interface AttestorPublicKeyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      String getId()
      The ID of this public key.
      com.google.protobuf.ByteString getIdBytes()
      The ID of this public key.
      PkixPublicKey getPkixPublicKey()
      A raw PKIX SubjectPublicKeyInfo format public key.
      PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder()
      A raw PKIX SubjectPublicKeyInfo format public key.
      AttestorPublicKey.PublicKeyCase getPublicKeyCase()  
      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).
      boolean hasPkixPublicKey()
      A raw PKIX SubjectPublicKeyInfo format public key.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getComment

        String getComment()
         Optional. A descriptive comment. This field may be updated.
         
        string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The comment.
      • getCommentBytes

        com.google.protobuf.ByteString getCommentBytes()
         Optional. A descriptive comment. This field may be updated.
         
        string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The bytes for comment.
      • getId

        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:
        The id.
      • getIdBytes

        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;
        Returns:
        The bytes for id.
      • hasAsciiArmoredPgpPublicKey

        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:
        Whether the asciiArmoredPgpPublicKey field is set.
      • getAsciiArmoredPgpPublicKey

        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:
        The asciiArmoredPgpPublicKey.
      • getAsciiArmoredPgpPublicKeyBytes

        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;
        Returns:
        The bytes for asciiArmoredPgpPublicKey.
      • hasPkixPublicKey

        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;
        Returns:
        Whether the pkixPublicKey field is set.
      • getPkixPublicKey

        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;
        Returns:
        The pkixPublicKey.
      • getPkixPublicKeyOrBuilder

        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;