public static class GrpcChannelProperties.Security extends Object
Constructor and Description |
---|
Security() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
void |
copyDefaultsFrom(GrpcChannelProperties.Security config)
Copies the defaults from the given configuration.
|
boolean |
equals(Object o) |
String |
getAuthorityOverride()
Gets the authority to check for during server certificate verification.
|
String |
getCertificateChainPath()
Gets the path to SSL certificate chain.
|
List<String> |
getCiphers() |
String |
getPrivateKeyPath()
Gets the path to the private key.
|
String[] |
getProtocols() |
String |
getTrustCertCollectionPath()
Gets the path to the trusted certificate collection.
|
int |
hashCode() |
boolean |
isClientAuthEnabled()
Gets whether client can authenticate using certificates.
|
void |
setAuthorityOverride(String authorityOverride)
Sets the authority to check for during server certificate verification.
|
void |
setCertificateChainPath(String certificateChainPath)
Sets the path to SSL certificate chain.
|
void |
setCiphers(String ciphers) |
void |
setClientAuthEnabled(Boolean clientAuthEnabled)
Set whether client can authenticate using certificates.
|
void |
setPrivateKeyPath(String privateKeyPath)
Sets the path to the private key.
|
void |
setProtocols(String protocols) |
void |
setTrustCertCollectionPath(String trustCertCollectionPath)
Sets the path to the trusted certificate collection.
|
String |
toString() |
public boolean isClientAuthEnabled()
setClientAuthEnabled(Boolean)
public void setClientAuthEnabled(Boolean clientAuthEnabled)
false
.clientAuthEnabled
- Whether the client can authenticate itself using certificates.public String getCertificateChainPath()
setCertificateChainPath(String)
public void setCertificateChainPath(String certificateChainPath)
isClientAuthEnabled()
is true. The linked
certificate will be used to authenticate the client.certificateChainPath
- The path to the certificate chain.SslContextBuilder.keyManager(File, File)
public String getPrivateKeyPath()
setPrivateKeyPath(String)
public void setPrivateKeyPath(String privateKeyPath)
isClientAuthEnabled()
is true.privateKeyPath
- The path to the private key.SslContextBuilder.keyManager(File, File)
public String getTrustCertCollectionPath()
null
or empty the use the system's default
collection should be used.setTrustCertCollectionPath(String)
public void setTrustCertCollectionPath(String trustCertCollectionPath)
null
) it will use the system's
default collection (Default). This collection will be used to verify server certificates.trustCertCollectionPath
- The path to the trusted certificate collection.SslContextBuilder.trustManager(File)
public String getAuthorityOverride()
setAuthorityOverride(String)
public void setAuthorityOverride(String authorityOverride)
authorityOverride
- The authority to check for in the certificate, or null to use the default checks.AbstractManagedChannelImplBuilder.overrideAuthority(String)
public List<String> getCiphers()
public void setCiphers(String ciphers)
ciphers
- Cipher suite consisting of one or more cipher strings separated by colons, commas or spacespublic String[] getProtocols()
public void setProtocols(String protocols)
protocols
- Protocol list consisting of one or more protocols separated by colons, commas or spaces.public void copyDefaultsFrom(GrpcChannelProperties.Security config)
config
- The config to copy the defaults from.protected boolean canEqual(Object other)