Package com.ibm.cloud.sdk.core.security
Class BasicAuthenticator.Builder
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.BasicAuthenticator.Builder
-
- Enclosing class:
- BasicAuthenticator
public static class BasicAuthenticator.Builder extends java.lang.ObjectThis Builder class is used to construct BasicAuthenticator instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicAuthenticatorbuild()Constructs a new instance of BasicAuthenticator from the builder's configuration.BasicAuthenticator.Builderpassword(java.lang.String password)Sets the password property.BasicAuthenticator.Builderusername(java.lang.String username)Sets the username property.
-
-
-
Method Detail
-
build
public BasicAuthenticator build()
Constructs a new instance of BasicAuthenticator from the builder's configuration.- Returns:
- the BasicAuthenticator instance
-
username
public BasicAuthenticator.Builder username(java.lang.String username)
Sets the username property.- Parameters:
username- the base auth username to include in the Authorization header- Returns:
- the Builder
-
password
public BasicAuthenticator.Builder password(java.lang.String password)
Sets the password property.- Parameters:
password- the basic auth password to include in the Authorization header- Returns:
- the Builder
-
-