Class ClientOptions
java.lang.Object
org.springframework.credhub.support.ClientOptions
Client options for CredHub connectivity.
- Author:
- Mark Paluch, Scott Frederick
-
Constructor Summary
ConstructorDescriptionCreate newClientOptions
with default values.ClientOptions
(Duration connectionTimeout, Duration readTimeout, String[] caCertFiles) Create aClientOptions
with the provided values. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the connection timeout inTimeUnit.MILLISECONDS
.Get the connection timeout inTimeUnit.MILLISECONDS
.Get the read timeout inTimeUnit.MILLISECONDS
.Get the read timeout inTimeUnit.MILLISECONDS
.void
setCaCertFiles
(String[] caCertFiles) void
setConnectionTimeout
(Duration connectionTimeout) void
setReadTimeout
(Duration readTimeout)
-
Constructor Details
-
ClientOptions
public ClientOptions()Create newClientOptions
with default values. -
ClientOptions
Create aClientOptions
with the provided values.- Parameters:
connectionTimeout
- connection timeout inTimeUnit.MILLISECONDS
, must be greater 0readTimeout
- read timeout inTimeUnit.MILLISECONDS
, must be greater 0caCertFiles
- one or more CA certificate files to use when connecting
-
-
Method Details
-
getConnectionTimeout
Get the connection timeout inTimeUnit.MILLISECONDS
.- Returns:
- the connection timeout; can be null if not explicitly set
-
getConnectionTimeoutMillis
Get the connection timeout inTimeUnit.MILLISECONDS
.- Returns:
- the connection timeout; can be null if not explicitly set
-
setConnectionTimeout
-
getReadTimeout
Get the read timeout inTimeUnit.MILLISECONDS
.- Returns:
- the read timeout; can be null if not explicitly set
-
getReadTimeoutMillis
Get the read timeout inTimeUnit.MILLISECONDS
.- Returns:
- the read timeout; can be null if not explicitly set
-
setReadTimeout
-
getCaCertFiles
-
setCaCertFiles
-