Interface AttributeContext.PeerOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsLabels​(java.lang.String key)
      The labels associated with the peer.
      Address getAddress()
      The address of the peer, this is typically the IP address.
      AddressOrBuilder getAddressOrBuilder()
      The address of the peer, this is typically the IP address.
      java.lang.String getCertificate()
      The X.509 certificate used to authenticate the identify of this peer.
      com.google.protobuf.ByteString getCertificateBytes()
      The X.509 certificate used to authenticate the identify of this peer.
      java.util.Map<java.lang.String,​java.lang.String> getLabels()
      Deprecated.
      int getLabelsCount()
      The labels associated with the peer.
      java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
      The labels associated with the peer.
      java.lang.String getLabelsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      The labels associated with the peer.
      java.lang.String getLabelsOrThrow​(java.lang.String key)
      The labels associated with the peer.
      java.lang.String getPrincipal()
      The authenticated identity of this peer.
      com.google.protobuf.ByteString getPrincipalBytes()
      The authenticated identity of this peer.
      java.lang.String getService()
      The canonical service name of the peer.
      com.google.protobuf.ByteString getServiceBytes()
      The canonical service name of the peer.
      boolean hasAddress()
      The address of the peer, this is typically the IP address.
      • 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

      • hasAddress

        boolean hasAddress()
         The address of the peer, this is typically the IP address.
         It can also be UDS path, or others.
         
        .envoy.api.v2.core.Address address = 1;
        Returns:
        Whether the address field is set.
      • getAddress

        Address getAddress()
         The address of the peer, this is typically the IP address.
         It can also be UDS path, or others.
         
        .envoy.api.v2.core.Address address = 1;
        Returns:
        The address.
      • getAddressOrBuilder

        AddressOrBuilder getAddressOrBuilder()
         The address of the peer, this is typically the IP address.
         It can also be UDS path, or others.
         
        .envoy.api.v2.core.Address address = 1;
      • getService

        java.lang.String getService()
         The canonical service name of the peer.
         It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster
         <config_http_conn_man_headers_downstream-service-cluster>`
         If a more trusted source of the service name is available through mTLS/secure naming, it
         should be used.
         
        string service = 2;
        Returns:
        The service.
      • getServiceBytes

        com.google.protobuf.ByteString getServiceBytes()
         The canonical service name of the peer.
         It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster
         <config_http_conn_man_headers_downstream-service-cluster>`
         If a more trusted source of the service name is available through mTLS/secure naming, it
         should be used.
         
        string service = 2;
        Returns:
        The bytes for service.
      • getLabelsCount

        int getLabelsCount()
         The labels associated with the peer.
         These could be pod labels for Kubernetes or tags for VMs.
         The source of the labels could be an X.509 certificate or other configuration.
         
        map<string, string> labels = 3;
      • containsLabels

        boolean containsLabels​(java.lang.String key)
         The labels associated with the peer.
         These could be pod labels for Kubernetes or tags for VMs.
         The source of the labels could be an X.509 certificate or other configuration.
         
        map<string, string> labels = 3;
      • getLabels

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getLabels()
        Deprecated.
        Use getLabelsMap() instead.
      • getLabelsMap

        java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
         The labels associated with the peer.
         These could be pod labels for Kubernetes or tags for VMs.
         The source of the labels could be an X.509 certificate or other configuration.
         
        map<string, string> labels = 3;
      • getLabelsOrDefault

        java.lang.String getLabelsOrDefault​(java.lang.String key,
                                            java.lang.String defaultValue)
         The labels associated with the peer.
         These could be pod labels for Kubernetes or tags for VMs.
         The source of the labels could be an X.509 certificate or other configuration.
         
        map<string, string> labels = 3;
      • getLabelsOrThrow

        java.lang.String getLabelsOrThrow​(java.lang.String key)
         The labels associated with the peer.
         These could be pod labels for Kubernetes or tags for VMs.
         The source of the labels could be an X.509 certificate or other configuration.
         
        map<string, string> labels = 3;
      • getPrincipal

        java.lang.String getPrincipal()
         The authenticated identity of this peer.
         For example, the identity associated with the workload such as a service account.
         If an X.509 certificate is used to assert the identity this field should be sourced from
         `URI Subject Alternative Names`, `DNS Subject Alternate Names` or `Subject` in that order.
         The primary identity should be the principal. The principal format is issuer specific.
         Example:
         *    SPIFFE format is `spiffe://trust-domain/path`
         *    Google account format is `https://accounts.google.com/{userid}`
         
        string principal = 4;
        Returns:
        The principal.
      • getPrincipalBytes

        com.google.protobuf.ByteString getPrincipalBytes()
         The authenticated identity of this peer.
         For example, the identity associated with the workload such as a service account.
         If an X.509 certificate is used to assert the identity this field should be sourced from
         `URI Subject Alternative Names`, `DNS Subject Alternate Names` or `Subject` in that order.
         The primary identity should be the principal. The principal format is issuer specific.
         Example:
         *    SPIFFE format is `spiffe://trust-domain/path`
         *    Google account format is `https://accounts.google.com/{userid}`
         
        string principal = 4;
        Returns:
        The bytes for principal.
      • getCertificate

        java.lang.String getCertificate()
         The X.509 certificate used to authenticate the identify of this peer.
         When present, the certificate contents are encoded in URL and PEM format.
         
        string certificate = 5;
        Returns:
        The certificate.
      • getCertificateBytes

        com.google.protobuf.ByteString getCertificateBytes()
         The X.509 certificate used to authenticate the identify of this peer.
         When present, the certificate contents are encoded in URL and PEM format.
         
        string certificate = 5;
        Returns:
        The bytes for certificate.