Interface SecurityProviderOutput
-
public interface SecurityProviderOutput- Since:
- 4.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull SecurityProviderOutputcipherSuites(@Nullable Collection<String> cipherSuites)Sets the optional user defined cipher suites.@NotNull SecurityProviderOutputhandshakeTimeout(long handshakeTimeout, @NotNull TimeUnit timeUnit)Sets the SSL/TLS handshake timeout.@NotNull SecurityProviderOutputhostnameVerifier(@Nullable HostnameVerifier hostnameVerifier)Sets the optional user defined hostname verifier.@NotNull SecurityProviderOutputkeyManagerFactory(@Nullable KeyManagerFactory keyManagerFactory)Sets the optional user definedKeyManagerFactory.@NotNull SecurityProviderOutputprotocols(@Nullable Collection<String> protocols)Sets the optional user defined protocols.@NotNull SecurityProviderOutputtrustManagerFactory(@Nullable TrustManagerFactory trustManagerFactory)Sets the optional user definedTrustManagerFactory.@NotNull SecurityProviderOutputuserNamePassword(@NotNull String username, byte @Nullable [] password)Configures username password authentication.
-
-
-
Method Detail
-
userNamePassword
@NotNull @NotNull SecurityProviderOutput userNamePassword(@NotNull @NotNull String username, byte @Nullable [] password)
Configures username password authentication.- Parameters:
username- the username.password- the password.- Returns:
- this.
- Since:
- 4.6.0
-
keyManagerFactory
@NotNull @NotNull SecurityProviderOutput keyManagerFactory(@Nullable @Nullable KeyManagerFactory keyManagerFactory)
Sets the optional user definedKeyManagerFactory.- Parameters:
keyManagerFactory- the key manager factory ornullto remove any previously set key manager factory.- Returns:
- this.
- Since:
- 4.6.0
-
trustManagerFactory
@NotNull @NotNull SecurityProviderOutput trustManagerFactory(@Nullable @Nullable TrustManagerFactory trustManagerFactory)
Sets the optional user definedTrustManagerFactory.- Parameters:
trustManagerFactory- the trust manager factory ornullto remove any previously set trust manager factory.- Returns:
- this.
- Since:
- 4.6.0
-
cipherSuites
@NotNull @NotNull SecurityProviderOutput cipherSuites(@Nullable @Nullable Collection<String> cipherSuites)
Sets the optional user defined cipher suites.- Parameters:
cipherSuites- the cipher suites ornullto use the default cipher suites of Netty (network communication framework).- Returns:
- this.
- Since:
- 4.6.0
-
protocols
@NotNull @NotNull SecurityProviderOutput protocols(@Nullable @Nullable Collection<String> protocols)
Sets the optional user defined protocols.- Parameters:
protocols- the protocols ornullto use the default protocols of Netty (network communication framework).- Returns:
- this.
- Since:
- 4.6.0
-
handshakeTimeout
@NotNull @NotNull SecurityProviderOutput handshakeTimeout(long handshakeTimeout, @NotNull @NotNull TimeUnit timeUnit)
Sets the SSL/TLS handshake timeout.The timeout in nanoseconds must be in the range: [0,
Integer.MAX_VALUE].- Parameters:
handshakeTimeout- the time unit of the given timeout (this timeout only supports millisecond precision).- Returns:
- this.
- Since:
- 4.6.0
-
hostnameVerifier
@NotNull @NotNull SecurityProviderOutput hostnameVerifier(@Nullable @Nullable HostnameVerifier hostnameVerifier)
Sets the optional user defined hostname verifier.- Parameters:
hostnameVerifier- theHostnameVerifierornullto use https hostname verification.- Returns:
- this.
- Since:
- 4.6.0
-
-