Package com.ibm.cloud.sdk.core.security
Class CloudPakForDataServiceAuthenticator.Builder
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.CloudPakForDataServiceAuthenticator.Builder
-
- Enclosing class:
- CloudPakForDataServiceAuthenticator
public static class CloudPakForDataServiceAuthenticator.Builder extends java.lang.ObjectThis Builder class is used to construct CloudPakForDataServiceAuthenticator instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudPakForDataServiceAuthenticatorbuild()Constructs a new instance of CloudPakForDataServiceAuthenticator from the builder's configuration.CloudPakForDataServiceAuthenticator.BuilderdisableSSLVerification(boolean disableSSLVerification)Sets the disableSSLVerification property.CloudPakForDataServiceAuthenticator.BuilderdisplayName(java.lang.String displayName)Sets the displayName property.CloudPakForDataServiceAuthenticator.BuilderexpirationTime(java.lang.String expirationTime)Sets the expirationTime property.CloudPakForDataServiceAuthenticator.Builderheaders(java.util.Map<java.lang.String,java.lang.String> headers)Sets the headers property.CloudPakForDataServiceAuthenticator.Builderpermissions(java.lang.String permissions)Sets the permissions property.CloudPakForDataServiceAuthenticator.Builderproxy(java.net.Proxy proxy)Sets the proxy property.CloudPakForDataServiceAuthenticator.BuilderproxyAuthenticator(okhttp3.Authenticator proxyAuthenticator)Sets the proxyAuthenticator property.CloudPakForDataServiceAuthenticator.BuilderserviceBrokerSecret(java.lang.String serviceBrokerSecret)Sets the serviceBrokerSecret property.CloudPakForDataServiceAuthenticator.Builderuid(java.lang.String uid)Sets the uid property.CloudPakForDataServiceAuthenticator.Builderurl(java.lang.String url)Sets the url property.CloudPakForDataServiceAuthenticator.Builderusername(java.lang.String username)Sets the username property.
-
-
-
Method Detail
-
build
public CloudPakForDataServiceAuthenticator build()
Constructs a new instance of CloudPakForDataServiceAuthenticator from the builder's configuration.- Returns:
- the CloudPakForDataServiceAuthenticator instance
-
url
public CloudPakForDataServiceAuthenticator.Builder url(java.lang.String url)
Sets the url property.- Parameters:
url- the base url to use with the CloudPakForData token service- Returns:
- the Builder
-
username
public CloudPakForDataServiceAuthenticator.Builder username(java.lang.String username)
Sets the username property.- Parameters:
username- the username to use when retrieving an access token- Returns:
- the Builder
-
displayName
public CloudPakForDataServiceAuthenticator.Builder displayName(java.lang.String displayName)
Sets the displayName property.- Parameters:
displayName- the displayName to use when retrieving an access token- Returns:
- the Builder
-
uid
public CloudPakForDataServiceAuthenticator.Builder uid(java.lang.String uid)
Sets the uid property.- Parameters:
uid- the uid to use when retrieving an access token- Returns:
- the Builder
-
permissions
public CloudPakForDataServiceAuthenticator.Builder permissions(java.lang.String permissions)
Sets the permissions property.- Parameters:
permissions- the permissions to use when retrieving an access token- Returns:
- the Builder
-
expirationTime
public CloudPakForDataServiceAuthenticator.Builder expirationTime(java.lang.String expirationTime)
Sets the expirationTime property.- Parameters:
expirationTime- the expirationTime to use when retrieving an access token- Returns:
- the Builder
-
serviceBrokerSecret
public CloudPakForDataServiceAuthenticator.Builder serviceBrokerSecret(java.lang.String serviceBrokerSecret)
Sets the serviceBrokerSecret property.- Parameters:
serviceBrokerSecret- the serviceBrokerSecret to use when retrieving an access token- Returns:
- the Builder
-
disableSSLVerification
public CloudPakForDataServiceAuthenticator.Builder disableSSLVerification(boolean disableSSLVerification)
Sets the disableSSLVerification property.- Parameters:
disableSSLVerification- a boolean flag indicating whether or not SSL verification should be disabled when interacting with the CloudPakForData token service- Returns:
- the Builder
-
headers
public CloudPakForDataServiceAuthenticator.Builder headers(java.util.Map<java.lang.String,java.lang.String> headers)
Sets the headers property.- Parameters:
headers- the set of custom headers to include in requests sent to the CloudPakForData token service- Returns:
- the Builder
-
proxy
public CloudPakForDataServiceAuthenticator.Builder proxy(java.net.Proxy proxy)
Sets the proxy property.- Parameters:
proxy- the java.net.Proxy instance to be used when interacting with the CloudPakForData token service- Returns:
- the Builder
-
proxyAuthenticator
public CloudPakForDataServiceAuthenticator.Builder proxyAuthenticator(okhttp3.Authenticator proxyAuthenticator)
Sets the proxyAuthenticator property.- Parameters:
proxyAuthenticator- the okhttp3.Authenticator instance to be used with the proxy when interacting with the CloudPakForData token service- Returns:
- the Builder
-
-