Class ClientOptions
java.lang.Object
org.springframework.credhub.support.ClientOptions
Client options for CredHub connectivity.
- Author:
- Mark Paluch, Scott Frederick
- 
Constructor SummaryConstructorsConstructorDescriptionCreate newClientOptionswith default values.ClientOptions(Duration connectionTimeout, Duration readTimeout, String[] caCertFiles) Create aClientOptionswith the provided values.
- 
Method SummaryModifier 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.voidsetCaCertFiles(String[] caCertFiles) voidsetConnectionTimeout(Duration connectionTimeout) voidsetReadTimeout(Duration readTimeout) 
- 
Constructor Details- 
ClientOptionspublic ClientOptions()Create newClientOptionswith default values.
- 
ClientOptionsCreate aClientOptionswith the provided values.- Parameters:
- connectionTimeout- connection timeout in- TimeUnit.MILLISECONDS, must be greater 0
- readTimeout- read timeout in- TimeUnit.MILLISECONDS, must be greater 0
- caCertFiles- one or more CA certificate files to use when connecting
 
 
- 
- 
Method Details- 
getConnectionTimeoutGet the connection timeout inTimeUnit.MILLISECONDS.- Returns:
- the connection timeout; can be null if not explicitly set
 
- 
getConnectionTimeoutMillisGet the connection timeout inTimeUnit.MILLISECONDS.- Returns:
- the connection timeout; can be null if not explicitly set
 
- 
setConnectionTimeout
- 
getReadTimeoutGet the read timeout inTimeUnit.MILLISECONDS.- Returns:
- the read timeout; can be null if not explicitly set
 
- 
getReadTimeoutMillisGet the read timeout inTimeUnit.MILLISECONDS.- Returns:
- the read timeout; can be null if not explicitly set
 
- 
setReadTimeout
- 
getCaCertFiles
- 
setCaCertFiles
 
-