Package com.ibm.cloud.sdk.core.security
Class ConfigBasedAuthenticatorFactory
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.ConfigBasedAuthenticatorFactory
-
public class ConfigBasedAuthenticatorFactory extends java.lang.ObjectThis class serves as an Authenticator factory. It will detect and use various configuration sources in order to produce an Authenticator instance.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERRORMSG_AUTHTYPE_UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticatorgetAuthenticator(java.lang.String serviceName)Retrieves authentication configuration information for the specified cloud service, and returns an Authenticator instance, or null if the configuration information could not be found.
-
-
-
Field Detail
-
ERRORMSG_AUTHTYPE_UNKNOWN
public static final java.lang.String ERRORMSG_AUTHTYPE_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthenticator
public static Authenticator getAuthenticator(java.lang.String serviceName)
Retrieves authentication configuration information for the specified cloud service, and returns an Authenticator instance, or null if the configuration information could not be found.- Parameters:
serviceName- the name of the cloud service whose authentication information should be retrieved- Returns:
- an Authenticator that reflects the properties that were found in the various config sources
-
-