Class KeyUsage.KeyUsageOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions
All Implemented Interfaces:
KeyUsage.KeyUsageOptionsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
KeyUsage

public static final class KeyUsage.KeyUsageOptions extends com.google.protobuf.GeneratedMessage implements KeyUsage.KeyUsageOptionsOrBuilder
 [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions]
 corresponds to the key usage values described in
 https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
 
Protobuf type google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions
See Also:
  • Field Details

    • DIGITAL_SIGNATURE_FIELD_NUMBER

      public static final int DIGITAL_SIGNATURE_FIELD_NUMBER
      See Also:
    • CONTENT_COMMITMENT_FIELD_NUMBER

      public static final int CONTENT_COMMITMENT_FIELD_NUMBER
      See Also:
    • KEY_ENCIPHERMENT_FIELD_NUMBER

      public static final int KEY_ENCIPHERMENT_FIELD_NUMBER
      See Also:
    • DATA_ENCIPHERMENT_FIELD_NUMBER

      public static final int DATA_ENCIPHERMENT_FIELD_NUMBER
      See Also:
    • KEY_AGREEMENT_FIELD_NUMBER

      public static final int KEY_AGREEMENT_FIELD_NUMBER
      See Also:
    • CERT_SIGN_FIELD_NUMBER

      public static final int CERT_SIGN_FIELD_NUMBER
      See Also:
    • CRL_SIGN_FIELD_NUMBER

      public static final int CRL_SIGN_FIELD_NUMBER
      See Also:
    • ENCIPHER_ONLY_FIELD_NUMBER

      public static final int ENCIPHER_ONLY_FIELD_NUMBER
      See Also:
    • DECIPHER_ONLY_FIELD_NUMBER

      public static final int DECIPHER_ONLY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDigitalSignature

      public boolean getDigitalSignature()
       The key may be used for digital signatures.
       
      bool digital_signature = 1;
      Specified by:
      getDigitalSignature in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The digitalSignature.
    • getContentCommitment

      public boolean getContentCommitment()
       The key may be used for cryptographic commitments. Note that this may
       also be referred to as "non-repudiation".
       
      bool content_commitment = 2;
      Specified by:
      getContentCommitment in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The contentCommitment.
    • getKeyEncipherment

      public boolean getKeyEncipherment()
       The key may be used to encipher other keys.
       
      bool key_encipherment = 3;
      Specified by:
      getKeyEncipherment in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The keyEncipherment.
    • getDataEncipherment

      public boolean getDataEncipherment()
       The key may be used to encipher data.
       
      bool data_encipherment = 4;
      Specified by:
      getDataEncipherment in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The dataEncipherment.
    • getKeyAgreement

      public boolean getKeyAgreement()
       The key may be used in a key agreement protocol.
       
      bool key_agreement = 5;
      Specified by:
      getKeyAgreement in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The keyAgreement.
    • getCertSign

      public boolean getCertSign()
       The key may be used to sign certificates.
       
      bool cert_sign = 6;
      Specified by:
      getCertSign in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The certSign.
    • getCrlSign

      public boolean getCrlSign()
       The key may be used sign certificate revocation lists.
       
      bool crl_sign = 7;
      Specified by:
      getCrlSign in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The crlSign.
    • getEncipherOnly

      public boolean getEncipherOnly()
       The key may be used to encipher only.
       
      bool encipher_only = 8;
      Specified by:
      getEncipherOnly in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The encipherOnly.
    • getDecipherOnly

      public boolean getDecipherOnly()
       The key may be used to decipher only.
       
      bool decipher_only = 9;
      Specified by:
      getDecipherOnly in interface KeyUsage.KeyUsageOptionsOrBuilder
      Returns:
      The decipherOnly.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static KeyUsage.KeyUsageOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static KeyUsage.KeyUsageOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static KeyUsage.KeyUsageOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public KeyUsage.KeyUsageOptions.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static KeyUsage.KeyUsageOptions.Builder newBuilder()
    • newBuilder

      public static KeyUsage.KeyUsageOptions.Builder newBuilder(KeyUsage.KeyUsageOptions prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected KeyUsage.KeyUsageOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static KeyUsage.KeyUsageOptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<KeyUsage.KeyUsageOptions> parser()
    • getParserForType

      public com.google.protobuf.Parser<KeyUsage.KeyUsageOptions> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public KeyUsage.KeyUsageOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder