Class RndTokenManager

java.lang.Object
org.restheart.security.tokens.RndTokenManager
All Implemented Interfaces:
io.undertow.security.idm.IdentityManager, org.restheart.plugins.ConfigurablePlugin, org.restheart.plugins.Plugin, org.restheart.plugins.security.Authenticator, org.restheart.plugins.security.TokenManager

public class RndTokenManager extends Object implements org.restheart.plugins.security.TokenManager
  • Field Summary

    Fields inherited from interface org.restheart.plugins.security.TokenManager

    ACCESS_CONTROL_EXPOSE_HEADERS, AUTH_TOKEN_HEADER, AUTH_TOKEN_LOCATION_HEADER, AUTH_TOKEN_VALID_HEADER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.undertow.security.idm.PasswordCredential
    get(io.undertow.security.idm.Account account)
     
    org.restheart.cache.Cache<String,org.restheart.security.PwdCredentialAccount>
     
    void
     
    void
    injectTokenHeaders(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token)
     
    void
    invalidate(io.undertow.security.idm.Account account)
     
    void
    update(io.undertow.security.idm.Account account)
     
    io.undertow.security.idm.Account
    verify(io.undertow.security.idm.Account account)
     
    io.undertow.security.idm.Account
    verify(io.undertow.security.idm.Credential credential)
     
    io.undertow.security.idm.Account
    verify(String id, io.undertow.security.idm.Credential credential)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.restheart.plugins.ConfigurablePlugin

    arg, argOrDefault
  • Constructor Details

    • RndTokenManager

      public RndTokenManager()
  • Method Details

    • init

      public void init() throws org.restheart.configuration.ConfigurationException
      Throws:
      org.restheart.configuration.ConfigurationException
    • verify

      public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account)
      Specified by:
      verify in interface org.restheart.plugins.security.Authenticator
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager
    • verify

      public io.undertow.security.idm.Account verify(String id, io.undertow.security.idm.Credential credential)
      Specified by:
      verify in interface org.restheart.plugins.security.Authenticator
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager
    • verify

      public io.undertow.security.idm.Account verify(io.undertow.security.idm.Credential credential)
      Specified by:
      verify in interface org.restheart.plugins.security.Authenticator
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager
    • getCACHE

      public org.restheart.cache.Cache<String,org.restheart.security.PwdCredentialAccount> getCACHE()
    • get

      public io.undertow.security.idm.PasswordCredential get(io.undertow.security.idm.Account account)
      Specified by:
      get in interface org.restheart.plugins.security.TokenManager
    • invalidate

      public void invalidate(io.undertow.security.idm.Account account)
      Specified by:
      invalidate in interface org.restheart.plugins.security.TokenManager
    • update

      public void update(io.undertow.security.idm.Account account)
      Specified by:
      update in interface org.restheart.plugins.security.TokenManager
    • injectTokenHeaders

      public void injectTokenHeaders(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token)
      Specified by:
      injectTokenHeaders in interface org.restheart.plugins.security.TokenManager