Class FileRealmAuthenticator

java.lang.Object
org.restheart.plugins.FileConfigurablePlugin
org.restheart.security.authenticators.FileRealmAuthenticator
All Implemented Interfaces:
io.undertow.security.idm.IdentityManager, org.restheart.plugins.ConfigurablePlugin, org.restheart.plugins.Plugin, org.restheart.plugins.security.Authenticator

public class FileRealmAuthenticator extends org.restheart.plugins.FileConfigurablePlugin implements org.restheart.plugins.security.Authenticator
Authenticator with permission defined in a yml configuration file supports PasswordCredentials and DigestCredentials
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    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 org.restheart.plugins.FileConfigurablePlugin

    init

    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

    • FileRealmAuthenticator

      public FileRealmAuthenticator()
  • Method Details

    • init

      public void init() throws FileNotFoundException, org.restheart.configuration.ConfigurationException
      Throws:
      FileNotFoundException
      org.restheart.configuration.ConfigurationException
    • consumeConfiguration

      public Consumer<? super Map<String,Object>> consumeConfiguration()
      Specified by:
      consumeConfiguration in class org.restheart.plugins.FileConfigurablePlugin
    • 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