Class AuthenticatorFactory
- java.lang.Object
-
- com.smartgridready.communicator.rest.http.authentication.AuthenticatorFactory
-
public class AuthenticatorFactory extends java.lang.ObjectImplements a factory that creates HTTP authenticators.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticatorgetAuthenticator(com.smartgridready.ns.v0.RestApiAuthenticationMethod authMethodType)Creates a new HTTP authenticator using reflection.
-
-
-
Method Detail
-
getAuthenticator
public static Authenticator getAuthenticator(com.smartgridready.ns.v0.RestApiAuthenticationMethod authMethodType) throws RestApiAuthenticationException
Creates a new HTTP authenticator using reflection.- Parameters:
authMethodType- the desired authentication method- Returns:
- an instance of
Authenticator - Throws:
RestApiAuthenticationException- when creating the instance failed
-
-