Class BasicAuthMechanism

java.lang.Object
io.undertow.security.impl.BasicAuthenticationMechanism
org.restheart.security.mechanisms.BasicAuthMechanism
All Implemented Interfaces:
io.undertow.security.api.AuthenticationMechanism, ConfigurablePlugin, Plugin, AuthMechanism

public class BasicAuthMechanism extends io.undertow.security.impl.BasicAuthenticationMechanism implements AuthMechanism
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.undertow.security.impl.BasicAuthenticationMechanism

    io.undertow.security.impl.BasicAuthenticationMechanism.Factory

    Nested classes/interfaces inherited from interface io.undertow.security.api.AuthenticationMechanism

    io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome, io.undertow.security.api.AuthenticationMechanism.ChallengeResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class io.undertow.security.impl.BasicAuthenticationMechanism

    CHARSET, FACTORY, SILENT, USER_AGENT_CHARSETS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome
    authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
     
    void
     
    io.undertow.security.api.AuthenticationMechanism.ChallengeResult
    sendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
     

    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.security.AuthMechanism

    getMechanismName

    Methods inherited from interface org.restheart.plugins.ConfigurablePlugin

    arg, argOrDefault
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init() throws ConfigurationException
      Throws:
      ConfigurationException
    • sendChallenge

      public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
      Specified by:
      sendChallenge in interface io.undertow.security.api.AuthenticationMechanism
      Specified by:
      sendChallenge in interface AuthMechanism
      Overrides:
      sendChallenge in class io.undertow.security.impl.BasicAuthenticationMechanism
    • authenticate

      public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
      Specified by:
      authenticate in interface io.undertow.security.api.AuthenticationMechanism
      Specified by:
      authenticate in interface AuthMechanism
      Overrides:
      authenticate in class io.undertow.security.impl.BasicAuthenticationMechanism