Package alpine.auth
Class OidcAuthenticationService
- java.lang.Object
-
- alpine.auth.OidcAuthenticationService
-
- All Implemented Interfaces:
AuthenticationService
public class OidcAuthenticationService extends Object implements AuthenticationService
- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Constructor Description OidcAuthenticationService(String accessToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principalauthenticate()Defines an authentication method which returns a Principal if authentication is successful or an AuthorizationException if not.booleanisSpecified()Defines a method which returns if the specified piece of data, required to perform authentication is present.
-
-
-
Constructor Detail
-
OidcAuthenticationService
public OidcAuthenticationService(String accessToken)
-
-
Method Detail
-
isSpecified
public boolean isSpecified()
Description copied from interface:AuthenticationServiceDefines a method which returns if the specified piece of data, required to perform authentication is present.- Specified by:
isSpecifiedin interfaceAuthenticationService- Returns:
- true if the authentication data was specified, false if not
-
authenticate
@Nullable public Principal authenticate() throws AlpineAuthenticationException
Description copied from interface:AuthenticationServiceDefines an authentication method which returns a Principal if authentication is successful or an AuthorizationException if not.- Specified by:
authenticatein interfaceAuthenticationService- Returns:
- a Principal of the authenticated user
- Throws:
AlpineAuthenticationException
-
-