Package overit.geocall.base.auth
Class OAuthAuthenticator
java.lang.Object
overit.geocall.rs.auth.TokenAuthenticator
overit.geocall.base.auth.OAuthAuthenticator
- All Implemented Interfaces:
overit.geocall.rs.auth.Authenticator
- Direct Known Subclasses:
AzureOAuthAuthenticator,DynamicOAuthAuthenticator,NoneOAuthAuthenticator,StaticOAuthAuthenticator
public abstract class OAuthAuthenticator
extends overit.geocall.rs.auth.TokenAuthenticator
-
Field Summary
FieldsFields inherited from class overit.geocall.rs.auth.TokenAuthenticator
AUTHORIZATION_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MicroSessiongenerate(OAuthAccessToken oAuthAccessToken, String serviceName) getAccessToken(String token, String serviceName) protected abstract overit.geocall.base.sso.oauth2.OAuthValidatorgetJwtValidator(String token, String serviceName) getSession(OAuthAccessToken oauthAccessToken, String serviceName) protected StringgetSSOService(HttpServletRequest request) getSSOServices(HttpServletRequest request) protected abstract StringgetValidationRules(String serviceName) protected overit.geocall.rs.auth.Authenticationparse(String token, HttpServletRequest request) protected final overit.geocall.rs.auth.Authenticationprotected overit.geocall.rs.auth.Authenticationparse(String token, String serviceName, OAuthAuthentication oAuthAuthentication) Methods inherited from class overit.geocall.rs.auth.TokenAuthenticator
authenticate, getWWWAuthenticateHeader, retrieveTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.rs.auth.Authenticator
bind
-
Field Details
-
SSO_TYPE_OAUTH
- See Also:
-
-
Constructor Details
-
OAuthAuthenticator
public OAuthAuthenticator()
-
-
Method Details
-
getJwtValidator
-
getValidation
-
getFeatures
-
getDefinition
-
parse
- Specified by:
parsein classoverit.geocall.rs.auth.TokenAuthenticator
-
getSSOServices
-
getSSOService
-
parse
-
parse
protected overit.geocall.rs.auth.Authentication parse(String token, String serviceName, OAuthAuthentication oAuthAuthentication) -
getAccessToken
public OAuthAccessToken getAccessToken(String token, String serviceName) throws io.jsonwebtoken.JwtException, MicroException - Throws:
io.jsonwebtoken.JwtExceptionMicroException
-
getSession
public MicroSession getSession(OAuthAccessToken oauthAccessToken, String serviceName) throws DAException, DAValidateException, MicroException -
generate
protected MicroSession generate(OAuthAccessToken oAuthAccessToken, String serviceName) throws MicroException - Throws:
MicroException
-
getValidationRules
-