public static enum TlsChannelCredentials.Feature extends Enum<TlsChannelCredentials.Feature>
|Enum Constant and Description|
A feature that no consumer should understand.
Client identity may be provided and server verification can be tuned.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final TlsChannelCredentials.Feature FAKE
incomprehensible()is implemented properly.
public static final TlsChannelCredentials.Feature MTLS
TlsChannelCredentials.getPrivateKeyPassword()as well as
TlsChannelCredentials.getRootCertificates(). The certificate chain and private key are used to configure a key manager to provide the client's identity. If no certificate chain and private key are provided the client will have no identity. The root certificates are used to configure a trust manager for verifying the server's identity. If no root certificates are provided the trust manager will default to the system's root certificates.
public static final TlsChannelCredentials.Feature CUSTOM_MANAGERS
TrustManagerobjects. This feature requires observing
MTLSshould also be supported, as that is the more common method of configuration. When a manager is non-
null, then it is wholly responsible for key or trust material and usage; there is no need to check other manager sources like
KeyManageris available), or
If other manager sources are available (e.g.,
getPrivateKey() != null), then they
may be alternative representations of the same configuration and the consumer is free to use
those alternative representations if it prefers. But before doing so it must first
check that it understands that alternative representation by using
public static TlsChannelCredentials.Feature values()
for (TlsChannelCredentials.Feature c : TlsChannelCredentials.Feature.values()) System.out.println(c);
public static TlsChannelCredentials.Feature valueOf(String name)