Class TLSProperties

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TLSPropertiesOrBuilder, Serializable

    public final class TLSProperties
    extends com.google.protobuf.GeneratedMessageV3
    implements TLSPropertiesOrBuilder
     Properties of a negotiated TLS connection.
     [#next-free-field: 7]
     
    Protobuf type envoy.data.accesslog.v2.TLSProperties
    See Also:
    Serialized Form
    • Field Detail

      • TLS_VERSION_FIELD_NUMBER

        public static final int TLS_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TLS_CIPHER_SUITE_FIELD_NUMBER

        public static final int TLS_CIPHER_SUITE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TLS_SNI_HOSTNAME_FIELD_NUMBER

        public static final int TLS_SNI_HOSTNAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCAL_CERTIFICATE_PROPERTIES_FIELD_NUMBER

        public static final int LOCAL_CERTIFICATE_PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PEER_CERTIFICATE_PROPERTIES_FIELD_NUMBER

        public static final int PEER_CERTIFICATE_PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TLS_SESSION_ID_FIELD_NUMBER

        public static final int TLS_SESSION_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.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 class com.google.protobuf.GeneratedMessageV3
      • getTlsVersionValue

        public int getTlsVersionValue()
         Version of TLS that was negotiated.
         
        .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
        Specified by:
        getTlsVersionValue in interface TLSPropertiesOrBuilder
        Returns:
        The enum numeric value on the wire for tlsVersion.
      • hasTlsCipherSuite

        public boolean hasTlsCipherSuite()
         TLS cipher suite negotiated during handshake. The value is a
         four-digit hex code defined by the IANA TLS Cipher Suite Registry
         (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
         Here it is expressed as an integer.
         
        .google.protobuf.UInt32Value tls_cipher_suite = 2;
        Specified by:
        hasTlsCipherSuite in interface TLSPropertiesOrBuilder
        Returns:
        Whether the tlsCipherSuite field is set.
      • getTlsCipherSuite

        public com.google.protobuf.UInt32Value getTlsCipherSuite()
         TLS cipher suite negotiated during handshake. The value is a
         four-digit hex code defined by the IANA TLS Cipher Suite Registry
         (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
         Here it is expressed as an integer.
         
        .google.protobuf.UInt32Value tls_cipher_suite = 2;
        Specified by:
        getTlsCipherSuite in interface TLSPropertiesOrBuilder
        Returns:
        The tlsCipherSuite.
      • getTlsCipherSuiteOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getTlsCipherSuiteOrBuilder()
         TLS cipher suite negotiated during handshake. The value is a
         four-digit hex code defined by the IANA TLS Cipher Suite Registry
         (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
         Here it is expressed as an integer.
         
        .google.protobuf.UInt32Value tls_cipher_suite = 2;
        Specified by:
        getTlsCipherSuiteOrBuilder in interface TLSPropertiesOrBuilder
      • getTlsSniHostnameBytes

        public com.google.protobuf.ByteString getTlsSniHostnameBytes()
         SNI hostname from handshake.
         
        string tls_sni_hostname = 3;
        Specified by:
        getTlsSniHostnameBytes in interface TLSPropertiesOrBuilder
        Returns:
        The bytes for tlsSniHostname.
      • hasLocalCertificateProperties

        public boolean hasLocalCertificateProperties()
         Properties of the local certificate used to negotiate TLS.
         
        .envoy.data.accesslog.v2.TLSProperties.CertificateProperties local_certificate_properties = 4;
        Specified by:
        hasLocalCertificateProperties in interface TLSPropertiesOrBuilder
        Returns:
        Whether the localCertificateProperties field is set.
      • hasPeerCertificateProperties

        public boolean hasPeerCertificateProperties()
         Properties of the peer certificate used to negotiate TLS.
         
        .envoy.data.accesslog.v2.TLSProperties.CertificateProperties peer_certificate_properties = 5;
        Specified by:
        hasPeerCertificateProperties in interface TLSPropertiesOrBuilder
        Returns:
        Whether the peerCertificateProperties field is set.
      • getTlsSessionIdBytes

        public com.google.protobuf.ByteString getTlsSessionIdBytes()
         The TLS session ID.
         
        string tls_session_id = 6;
        Specified by:
        getTlsSessionIdBytes in interface TLSPropertiesOrBuilder
        Returns:
        The bytes for tlsSessionId.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 TLSProperties parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        public TLSProperties.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public TLSProperties.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected TLSProperties.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static TLSProperties getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<TLSProperties> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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