Class AuthTokenAuthenticationProvider

java.lang.Object
com.persequor.saga.modules.authtoken.authentication.AuthTokenAuthenticationProvider
All Implemented Interfaces:
com.persequor.extension.authentication.IAuthentication, com.persequor.extension.authentication.ITokenAuthentication

@Singleton public class AuthTokenAuthenticationProvider extends Object implements com.persequor.extension.authentication.ITokenAuthentication
  • Field Summary

    Fields inherited from interface com.persequor.extension.authentication.ITokenAuthentication

    AUTH_TOKEN_HEADER, BEARER_TOKEN_AUTHORIZATION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.persequor.extension.user.User>
    authenticate(com.persequor.extension.authentication.IAuthenticationRequest req, com.persequor.extension.authentication.IAuthenticationResponse resp, com.persequor.extension.authentication.IAuthenticationSession session)
     
    void
    signOut(com.persequor.extension.authentication.IAuthenticationRequest req, com.persequor.extension.authentication.IAuthenticationResponse resp, com.persequor.extension.authentication.IAuthenticationSession session)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.persequor.extension.authentication.ITokenAuthentication

    getToken
  • Constructor Details

    • AuthTokenAuthenticationProvider

      @Inject public AuthTokenAuthenticationProvider(AuthTokenService authTokenService)
  • Method Details

    • authenticate

      public Optional<com.persequor.extension.user.User> authenticate(com.persequor.extension.authentication.IAuthenticationRequest req, com.persequor.extension.authentication.IAuthenticationResponse resp, com.persequor.extension.authentication.IAuthenticationSession session)
      Specified by:
      authenticate in interface com.persequor.extension.authentication.IAuthentication
    • signOut

      public void signOut(com.persequor.extension.authentication.IAuthenticationRequest req, com.persequor.extension.authentication.IAuthenticationResponse resp, com.persequor.extension.authentication.IAuthenticationSession session)
      Specified by:
      signOut in interface com.persequor.extension.authentication.IAuthentication