Interface AttributeContext.PeerOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AttributeContext.Peer,AttributeContext.Peer.Builder
- Enclosing class:
- AttributeContext
public static interface AttributeContext.PeerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)The labels associated with the peer.AddressgetAddress()The address of the peer, this is typically the IP address.AddressOrBuildergetAddressOrBuilder()The address of the peer, this is typically the IP address.StringgetCertificate()The X.509 certificate used to authenticate the identify of this peer.com.google.protobuf.ByteStringgetCertificateBytes()The X.509 certificate used to authenticate the identify of this peer.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The labels associated with the peer.Map<String,String>getLabelsMap()The labels associated with the peer.StringgetLabelsOrDefault(String key, String defaultValue)The labels associated with the peer.StringgetLabelsOrThrow(String key)The labels associated with the peer.StringgetPrincipal()The authenticated identity of this peer.com.google.protobuf.ByteStringgetPrincipalBytes()The authenticated identity of this peer.StringgetService()The canonical service name of the peer.com.google.protobuf.ByteStringgetServiceBytes()The canonical service name of the peer.booleanhasAddress()The address of the peer, this is typically the IP address.-
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.config.core.v3.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.config.core.v3.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.config.core.v3.Address address = 1;
-
getService
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(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 Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,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
String getLabelsOrDefault(String key, 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
String getLabelsOrThrow(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
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
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.
-
-