Interface GrpcClientSecurityConfigurator<U,R>
-
- Type Parameters:
U- the type of address before resolution (unresolved address)R- the type of address after resolution (resolved address)
- All Superinterfaces:
ClientSecurityConfigurator,SecurityConfigurator
@Deprecated public interface GrpcClientSecurityConfigurator<U,R> extends ClientSecurityConfigurator
Deprecated.AClientSecurityConfiguratorforSingleAddressGrpcClientBuilder.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.SecurityConfigurator
SecurityConfigurator.SslProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description GrpcClientSecurityConfigurator<U,R>ciphers(java.lang.Iterable<java.lang.String> ciphers)Deprecated.The cipher suites to enable, in the order of preference.GrpcClientBuilder<U,R>commit()Deprecated.Commit configuring client security.GrpcClientSecurityConfigurator<U,R>disableHostnameVerification()Deprecated.Disable verification of the server identity.GrpcClientSecurityConfigurator<U,R>hostnameVerification(java.lang.String hostNameVerificationHost)Deprecated.Set the host name used to verify the server identity.GrpcClientSecurityConfigurator<U,R>hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)Deprecated.Set the host name and port used to verify the server identity.GrpcClientSecurityConfigurator<U,R>hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)Deprecated.Determines what algorithm to use for hostname verification.GrpcClientSecurityConfigurator<U,R>hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)Deprecated.Determines what algorithm to use for hostname verification.GrpcClientSecurityConfigurator<U,R>hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)Deprecated.Determines what algorithm to use for hostname verification.GrpcClientSecurityConfigurator<U,R>keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)Deprecated.Identifying certificate for this host.GrpcClientSecurityConfigurator<U,R>keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)Deprecated.Identifying certificate for this host.GrpcClientSecurityConfigurator<U,R>keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)Deprecated.Identifying certificate for this host.GrpcClientSecurityConfigurator<U,R>protocols(java.lang.String... protocols)Deprecated.The SSL protocols to enable, in the order of preference.GrpcClientSecurityConfigurator<U,R>provider(SecurityConfigurator.SslProvider provider)Deprecated.Sets theSecurityConfigurator.SslProviderto use.GrpcClientSecurityConfigurator<U,R>sessionCacheSize(long sessionCacheSize)Deprecated.Set the size of the cache used for storing SSL session objects.GrpcClientSecurityConfigurator<U,R>sessionTimeout(long sessionTimeout)Deprecated.Set the timeout for the cached SSL session objects, in seconds.GrpcClientSecurityConfigurator<U,R>sniHostname(java.lang.String sniHostname)Deprecated.Set the SNI host name.GrpcClientSecurityConfigurator<U,R>trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)Deprecated.Trusted certificates for verifying the remote endpoint's certificate.GrpcClientSecurityConfigurator<U,R>trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)Deprecated.Trust manager for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
commit
GrpcClientBuilder<U,R> commit()
Deprecated.Commit configuring client security.- Returns:
- Original
GrpcClientBuilderthat initiated the security configuration process.
-
trustManager
GrpcClientSecurityConfigurator<U,R> trustManager(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
Deprecated.Description copied from interface:SecurityConfiguratorTrusted certificates for verifying the remote endpoint's certificate. The input stream should contain anX.509certificate chain inPEMformat.- Specified by:
trustManagerin interfaceClientSecurityConfigurator- Specified by:
trustManagerin interfaceSecurityConfigurator- Parameters:
trustCertChainSupplier- a supplier for the certificate chain input stream.The responsibility to call
InputStream.close()is transferred to callers of the returnedSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().- Returns:
this.
-
trustManager
GrpcClientSecurityConfigurator<U,R> trustManager(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.Description copied from interface:SecurityConfiguratorTrust manager for verifying the remote endpoint's certificate. TheTrustManagerFactorywhich take preference over any configuredSupplier.- Specified by:
trustManagerin interfaceClientSecurityConfigurator- Specified by:
trustManagerin interfaceSecurityConfigurator- Parameters:
trustManagerFactory- theTrustManagerFactoryto use.- Returns:
this.
-
protocols
GrpcClientSecurityConfigurator<U,R> protocols(java.lang.String... protocols)
Deprecated.Description copied from interface:SecurityConfiguratorThe SSL protocols to enable, in the order of preference.- Specified by:
protocolsin interfaceClientSecurityConfigurator- Specified by:
protocolsin interfaceSecurityConfigurator- Parameters:
protocols- the protocols to use.- Returns:
this.- See Also:
SSLEngine.setEnabledProtocols(String[])
-
ciphers
GrpcClientSecurityConfigurator<U,R> ciphers(java.lang.Iterable<java.lang.String> ciphers)
Deprecated.Description copied from interface:SecurityConfiguratorThe cipher suites to enable, in the order of preference.- Specified by:
ciphersin interfaceClientSecurityConfigurator- Specified by:
ciphersin interfaceSecurityConfigurator- Parameters:
ciphers- the ciphers to use.- Returns:
this.
-
sessionCacheSize
GrpcClientSecurityConfigurator<U,R> sessionCacheSize(long sessionCacheSize)
Deprecated.Description copied from interface:SecurityConfiguratorSet the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSizein interfaceClientSecurityConfigurator- Specified by:
sessionCacheSizein interfaceSecurityConfigurator- Parameters:
sessionCacheSize- the cache size.- Returns:
this.
-
sessionTimeout
GrpcClientSecurityConfigurator<U,R> sessionTimeout(long sessionTimeout)
Deprecated.Description copied from interface:SecurityConfiguratorSet the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeoutin interfaceClientSecurityConfigurator- Specified by:
sessionTimeoutin interfaceSecurityConfigurator- Parameters:
sessionTimeout- the session timeout.- Returns:
this.
-
provider
GrpcClientSecurityConfigurator<U,R> provider(SecurityConfigurator.SslProvider provider)
Deprecated.Description copied from interface:SecurityConfiguratorSets theSecurityConfigurator.SslProviderto use.- Specified by:
providerin interfaceClientSecurityConfigurator- Specified by:
providerin interfaceSecurityConfigurator- Parameters:
provider- the provider.- Returns:
this.
-
hostnameVerificationAlgorithm
GrpcClientSecurityConfigurator<U,R> hostnameVerificationAlgorithm(java.lang.String hostNameVerificationAlgorithm)
Deprecated.Description copied from interface:ClientSecurityConfiguratorDetermines what algorithm to use for hostname verification.- Specified by:
hostnameVerificationAlgorithmin interfaceClientSecurityConfigurator- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
GrpcClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost)
Deprecated.Description copied from interface:ClientSecurityConfiguratorDetermines what algorithm to use for hostname verification.- Specified by:
hostnameVerificationin interfaceClientSecurityConfigurator- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.hostNameVerificationHost- the host name used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
GrpcClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationAlgorithm, java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Description copied from interface:ClientSecurityConfiguratorDetermines what algorithm to use for hostname verification.- Specified by:
hostnameVerificationin interfaceClientSecurityConfigurator- Parameters:
hostNameVerificationAlgorithm- The algorithm to use when verifying the host name. See Supported algorithm names.hostNameVerificationHost- the host name used to verify the server identity.hostNameVerificationPort- The port which maybe used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
hostnameVerification
GrpcClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost)
Deprecated.Description copied from interface:ClientSecurityConfiguratorSet the host name used to verify the server identity.- Specified by:
hostnameVerificationin interfaceClientSecurityConfigurator- Parameters:
hostNameVerificationHost- the host name used to verify the server identity.- Returns:
this.
-
hostnameVerification
GrpcClientSecurityConfigurator<U,R> hostnameVerification(java.lang.String hostNameVerificationHost, int hostNameVerificationPort)
Deprecated.Description copied from interface:ClientSecurityConfiguratorSet the host name and port used to verify the server identity.- Specified by:
hostnameVerificationin interfaceClientSecurityConfigurator- Parameters:
hostNameVerificationHost- the host name used to verify the server identity.hostNameVerificationPort- The port which maybe used to verify the server identity.- Returns:
this.- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String)
-
sniHostname
GrpcClientSecurityConfigurator<U,R> sniHostname(java.lang.String sniHostname)
Deprecated.Description copied from interface:ClientSecurityConfiguratorSet the SNI host name.- Specified by:
sniHostnamein interfaceClientSecurityConfigurator- Parameters:
sniHostname- The SNI host name.- Returns:
this.
-
disableHostnameVerification
GrpcClientSecurityConfigurator<U,R> disableHostnameVerification()
Deprecated.Description copied from interface:ClientSecurityConfiguratorDisable verification of the server identity.- Specified by:
disableHostnameVerificationin interfaceClientSecurityConfigurator- Returns:
this.
-
keyManager
GrpcClientSecurityConfigurator<U,R> keyManager(javax.net.ssl.KeyManagerFactory keyManagerFactory)
Deprecated.Description copied from interface:ClientSecurityConfiguratorIdentifying certificate for this host.keyManagerFactorymay benull, which disables mutual authentication. TheKeyManagerFactorywhich take preference over any configuredSupplier.- Specified by:
keyManagerin interfaceClientSecurityConfigurator- Parameters:
keyManagerFactory- anKeyManagerFactory.- Returns:
this.
-
keyManager
GrpcClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier)
Deprecated.Description copied from interface:ClientSecurityConfiguratorIdentifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Specified by:
keyManagerin interfaceClientSecurityConfigurator- Parameters:
keyCertChainSupplier- aSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().- Returns:
this.
-
keyManager
GrpcClientSecurityConfigurator<U,R> keyManager(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier, java.util.function.Supplier<java.io.InputStream> keySupplier, java.lang.String keyPassword)
Deprecated.Description copied from interface:ClientSecurityConfiguratorIdentifying certificate for this host.keyCertChainInputStreamandkeyInputStreammay benull, which disables mutual authentication.- Specified by:
keyManagerin interfaceClientSecurityConfigurator- Parameters:
keyCertChainSupplier- anSupplierthat will provide an input stream for aX.509certificate chain inPEMformat.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keySupplier- anSupplierthat will provide an input stream for a KCS#8 private key in PEM format.The responsibility to call
InputStream.close()is transferred to callers of theSupplier. If this is not the desired behavior then wrap theInputStreamand overrideInputStream.close().keyPassword- the password of thekeyInputStream.- Returns:
this.
-
-