AbstractPreauthFilter

org.beangle.security.web.authc.AbstractPreauthFilter
abstract class AbstractPreauthFilter(val securityManager: WebSecurityManager) extends GenericHttpFilter with Logging

Attributes

Graph
Supertypes
trait Logging
class GenericHttpFilter
trait Initializing
trait Filter
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

protected def getCredential(req: HttpServletRequest): Option[Any]
protected def resovleToken(req: HttpServletRequest, res: HttpServletResponse, credential: Any): Option[PreauthToken]

Concrete methods

final override def doFilter(req: ServletRequest, res: ServletResponse, chain: FilterChain): Unit

Try to authenticate a pre-authenticated user if the user has not yet been authenticated.

Try to authenticate a pre-authenticated user if the user has not yet been authenticated.

Attributes

Definition Classes
Filter
protected def requiresAuthentication(req: HttpServletRequest, res: HttpServletResponse): Option[PreauthToken]
protected def successfulAuthentication(req: HttpServletRequest, res: HttpServletResponse, session: Session): Unit

Puts the Authentication instance returned by the authentication manager into the secure context.

Puts the Authentication instance returned by the authentication manager into the secure context.

Attributes

protected def unsuccessfulAuthentication(req: HttpServletRequest, res: HttpServletResponse, failed: AuthenticationException): Unit

Ensures the authentication object in the secure context is set to null when authentication fails. If username not found or account status exception.just let other know by throw it. It will be handled by ExceptionTranslationFilter

Ensures the authentication object in the secure context is set to null when authentication fails. If username not found or account status exception.just let other know by throw it. It will be handled by ExceptionTranslationFilter

Attributes

Inherited methods

def config: FilterConfig

Attributes

Inherited from:
GenericHttpFilter
override def destroy(): Unit

Attributes

Definition Classes
GenericHttpFilter -> Filter
Inherited from:
GenericHttpFilter
protected def filterName: String

Make the name of this filter available to subclasses.

Make the name of this filter available to subclasses.

Attributes

Inherited from:
GenericHttpFilter
override def init(): Unit

do initialization.

do initialization.

Attributes

Definition Classes
GenericHttpFilter -> Initializing
Inherited from:
GenericHttpFilter
override def init(filterConfig: FilterConfig): Unit

Standard way of initializing this filter. Map config parameters onto bean properties of this filter, and invoke subclass initialization.

Standard way of initializing this filter. Map config parameters onto bean properties of this filter, and invoke subclass initialization.

Attributes

Definition Classes
GenericHttpFilter -> Filter
Inherited from:
GenericHttpFilter
def requiredProperties: Set[String]

Set of required properties (Strings) that must be supplied as config parameters to this filter.

Set of required properties (Strings) that must be supplied as config parameters to this filter.

Attributes

Inherited from:
GenericHttpFilter

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging