Class ServerTlsPolicy.MTLSPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy
All Implemented Interfaces:
ServerTlsPolicy.MTLSPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ServerTlsPolicy

public static final class ServerTlsPolicy.MTLSPolicy extends com.google.protobuf.GeneratedMessage implements ServerTlsPolicy.MTLSPolicyOrBuilder
 Specification of the MTLSPolicy.
 
Protobuf type google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy
See Also:
  • Field Details

    • CLIENT_VALIDATION_MODE_FIELD_NUMBER

      public static final int CLIENT_VALIDATION_MODE_FIELD_NUMBER
      See Also:
    • CLIENT_VALIDATION_CA_FIELD_NUMBER

      public static final int CLIENT_VALIDATION_CA_FIELD_NUMBER
      See Also:
    • CLIENT_VALIDATION_TRUST_CONFIG_FIELD_NUMBER

      public static final int CLIENT_VALIDATION_TRUST_CONFIG_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
    • getClientValidationModeValue

      public int getClientValidationModeValue()
       When the client presents an invalid certificate or no certificate to the
       load balancer, the `client_validation_mode` specifies how the client
       connection is handled.
      
       Required if the policy is to be used with the Application Load
       Balancers. For Traffic Director it must be empty.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;
      Specified by:
      getClientValidationModeValue in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for clientValidationMode.
    • getClientValidationMode

      public ServerTlsPolicy.MTLSPolicy.ClientValidationMode getClientValidationMode()
       When the client presents an invalid certificate or no certificate to the
       load balancer, the `client_validation_mode` specifies how the client
       connection is handled.
      
       Required if the policy is to be used with the Application Load
       Balancers. For Traffic Director it must be empty.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;
      Specified by:
      getClientValidationMode in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The clientValidationMode.
    • getClientValidationCaList

      public List<ValidationCA> getClientValidationCaList()
       Required if the policy is to be used with Traffic Director. For
       Application Load Balancers it must be empty.
      
       Defines the mechanism to obtain the Certificate Authority certificate to
       validate the client certificate.
       
      repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      Specified by:
      getClientValidationCaList in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationCaOrBuilderList

      public List<? extends ValidationCAOrBuilder> getClientValidationCaOrBuilderList()
       Required if the policy is to be used with Traffic Director. For
       Application Load Balancers it must be empty.
      
       Defines the mechanism to obtain the Certificate Authority certificate to
       validate the client certificate.
       
      repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      Specified by:
      getClientValidationCaOrBuilderList in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationCaCount

      public int getClientValidationCaCount()
       Required if the policy is to be used with Traffic Director. For
       Application Load Balancers it must be empty.
      
       Defines the mechanism to obtain the Certificate Authority certificate to
       validate the client certificate.
       
      repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      Specified by:
      getClientValidationCaCount in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationCa

      public ValidationCA getClientValidationCa(int index)
       Required if the policy is to be used with Traffic Director. For
       Application Load Balancers it must be empty.
      
       Defines the mechanism to obtain the Certificate Authority certificate to
       validate the client certificate.
       
      repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      Specified by:
      getClientValidationCa in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationCaOrBuilder

      public ValidationCAOrBuilder getClientValidationCaOrBuilder(int index)
       Required if the policy is to be used with Traffic Director. For
       Application Load Balancers it must be empty.
      
       Defines the mechanism to obtain the Certificate Authority certificate to
       validate the client certificate.
       
      repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;
      Specified by:
      getClientValidationCaOrBuilder in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationTrustConfig

      public String getClientValidationTrustConfig()
       Reference to the TrustConfig from certificatemanager.googleapis.com
       namespace.
      
       If specified, the chain validation will be performed against certificates
       configured in the given TrustConfig.
      
       Allowed only if the policy is to be used with Application Load
       Balancers.
       
      string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getClientValidationTrustConfig in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The clientValidationTrustConfig.
    • getClientValidationTrustConfigBytes

      public com.google.protobuf.ByteString getClientValidationTrustConfigBytes()
       Reference to the TrustConfig from certificatemanager.googleapis.com
       namespace.
      
       If specified, the chain validation will be performed against certificates
       configured in the given TrustConfig.
      
       Allowed only if the policy is to be used with Application Load
       Balancers.
       
      string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getClientValidationTrustConfigBytes in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The bytes for clientValidationTrustConfig.
    • 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 ServerTlsPolicy.MTLSPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static ServerTlsPolicy.MTLSPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static ServerTlsPolicy.MTLSPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static ServerTlsPolicy.MTLSPolicy.Builder newBuilder()
    • newBuilder

      public static ServerTlsPolicy.MTLSPolicy.Builder newBuilder(ServerTlsPolicy.MTLSPolicy prototype)
    • toBuilder

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

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

      public static ServerTlsPolicy.MTLSPolicy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ServerTlsPolicy.MTLSPolicy> parser()
    • getParserForType

      public com.google.protobuf.Parser<ServerTlsPolicy.MTLSPolicy> 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 ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder