Package com.ibm.cloud.sdk.core.security
Class NoAuthAuthenticator
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.NoAuthAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class NoAuthAuthenticator extends java.lang.Object implements Authenticator
This class is a placeholder implementation of the Authenticator interface which performs no authentication of outgoing REST API requests.
-
-
Field Summary
-
Fields inherited from interface com.ibm.cloud.sdk.core.security.Authenticator
AUTHTYPE_BASIC, AUTHTYPE_BEARER_TOKEN, AUTHTYPE_CONTAINER, AUTHTYPE_CP4D, AUTHTYPE_CP4D_SERVICE, AUTHTYPE_CP4D_SERVICE_INSTANCE, AUTHTYPE_IAM, AUTHTYPE_NOAUTH, AUTHTYPE_VPC, PROPNAME_APIKEY, PROPNAME_AUTH_TYPE, PROPNAME_BEARER_TOKEN, PROPNAME_CLIENT_ID, PROPNAME_CLIENT_SECRET, PROPNAME_CR_TOKEN_FILENAME, PROPNAME_DISABLE_SSL, PROPNAME_DISPLAY_NAME, PROPNAME_EXPIRATION_TIME, PROPNAME_IAM_PROFILE_CRN, PROPNAME_IAM_PROFILE_ID, PROPNAME_IAM_PROFILE_NAME, PROPNAME_PASSWORD, PROPNAME_PERMISSIONS, PROPNAME_SCOPE, PROPNAME_SERVICE_BROKER_SECRET, PROPNAME_SERVICE_INSTANCE_ID, PROPNAME_UID, PROPNAME_URL, PROPNAME_USERNAME
-
-
Constructor Summary
Constructors Constructor Description NoAuthAuthenticator()NoAuthAuthenticator(java.util.Map<java.lang.String,java.lang.String> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(okhttp3.Request.Builder builder)Perform the necessary authentication steps for the specified request.java.lang.StringauthenticationType()Returns the authentication type associated with the Authenticator instance.voidvalidate()Validates the current set of configuration information in the Authenticator.
-
-
-
Method Detail
-
authenticationType
public java.lang.String authenticationType()
Description copied from interface:AuthenticatorReturns the authentication type associated with the Authenticator instance.- Specified by:
authenticationTypein interfaceAuthenticator- Returns:
- a string representing the authentication type (e.g. "iam", "basic", "icp4d", etc.)
-
authenticate
public void authenticate(okhttp3.Request.Builder builder)
Description copied from interface:AuthenticatorPerform the necessary authentication steps for the specified request.- Specified by:
authenticatein interfaceAuthenticator- Parameters:
builder- theRequest.Builderinstance to authenticate
-
validate
public void validate()
Description copied from interface:AuthenticatorValidates the current set of configuration information in the Authenticator.- Specified by:
validatein interfaceAuthenticator
-
-