Package com.okta.commons.http.authc
Class DisabledAuthenticator
- java.lang.Object
-
- com.okta.commons.http.authc.DisabledAuthenticator
-
- All Implemented Interfaces:
RequestAuthenticator
public class DisabledAuthenticator extends java.lang.Object implements RequestAuthenticator
ThisRequestAuthenticatorprovides a no-op implementation. No authentication is added to requests that use this implementation.- Since:
- 1.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTHENTICATION_SCHEME-
Fields inherited from interface com.okta.commons.http.authc.RequestAuthenticator
AUTHORIZATION_HEADER
-
-
Constructor Summary
Constructors Constructor Description DisabledAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(Request request)Implementations of this operation will prepare the authentication information as expected by the Okta API server.
-
-
-
Field Detail
-
AUTHENTICATION_SCHEME
public static final java.lang.String AUTHENTICATION_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticate
public void authenticate(Request request) throws RequestAuthenticationException
Description copied from interface:RequestAuthenticatorImplementations of this operation will prepare the authentication information as expected by the Okta API server.- Specified by:
authenticatein interfaceRequestAuthenticator- Parameters:
request- the request that will be sent to Okta API server, it shall be modified by the implementating classes in order to insert here the authentication information- Throws:
RequestAuthenticationException- when the authentication request cannot be created
-
-