Class/Object

org.scalatra.auth.strategy

BasicAuthStrategy

Related Docs: object BasicAuthStrategy | package strategy

Permalink

abstract class BasicAuthStrategy[UserType <: AnyRef] extends ScentryStrategy[UserType] with RemoteAddress

Linear Supertypes
RemoteAddress, ScentryStrategy[UserType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicAuthStrategy
  2. RemoteAddress
  3. ScentryStrategy
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicAuthStrategy(app: ScalatraBase, realm: String)

    Permalink

Abstract Value Members

  1. abstract def getUserId(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Permalink
    Attributes
    protected
  2. abstract def validate(userName: String, password: String)(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def afterAuthenticate(winningStrategy: String, user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff after authentication only run when the module is valid

    Perform stuff after authentication only run when the module is valid

    Definition Classes
    ScentryStrategy
  5. def afterFetch(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff after fetching and serializing the user from session

    Perform stuff after fetching and serializing the user from session

    Definition Classes
    ScentryStrategy
  6. def afterLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff after logging the user out and invalidating the session

    Perform stuff after logging the user out and invalidating the session

    Definition Classes
    BasicAuthStrategyScentryStrategy
  7. def afterSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff after setting the user in the session

    Perform stuff after setting the user in the session

    Definition Classes
    BasicAuthStrategyScentryStrategy
  8. val app: ScalatraBase

    Permalink
    Attributes
    protected
    Definition Classes
    BasicAuthStrategyScentryStrategy
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[UserType]

    Permalink

    Perform the authentication for this strategy

    Perform the authentication for this strategy

    returns

    a UserType option where None indicates auth failure

    Definition Classes
    BasicAuthStrategyScentryStrategy
  11. def beforeAuthenticate(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff before authenticating, only run when the module is valid

    Perform stuff before authenticating, only run when the module is valid

    Definition Classes
    ScentryStrategy
  12. def beforeFetch[IdType](userId: IdType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff before fetching and serializing the user from session

    Perform stuff before fetching and serializing the user from session

    Definition Classes
    ScentryStrategy
  13. def beforeLogout(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff before logging the user out and invalidating the session

    Perform stuff before logging the user out and invalidating the session

    Definition Classes
    ScentryStrategy
  14. def beforeSetUser(user: UserType)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff before setting the user in the session

    Perform stuff before setting the user in the session

    Definition Classes
    ScentryStrategy
  15. def challenge: String

    Permalink
    Attributes
    protected
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def createStrategy(app: ScalatraBase): BasicAuthStrategy.this.type

    Permalink
    Definition Classes
    ScentryStrategy
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isValid(implicit request: HttpServletRequest): Boolean

    Permalink

    Indicates if this strategy should be run.

    Indicates if this strategy should be run.

    returns

    a Boolean to indicate validity

    Definition Classes
    BasicAuthStrategyScentryStrategy
  25. def name: String

    Permalink
    Definition Classes
    ScentryStrategy
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def registerWith(registrar: Scentry[UserType]): Unit

    Permalink
    Definition Classes
    ScentryStrategy
  30. def remoteAddress(implicit request: HttpServletRequest): String

    Permalink
    Attributes
    protected
    Definition Classes
    RemoteAddress
  31. implicit def request2BasicAuthRequest(r: HttpServletRequest): BasicAuthRequest

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def unauthenticated()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink

    Perform stuff when the request is unauthenticated and the strategy is valid

    Perform stuff when the request is unauthenticated and the strategy is valid

    Definition Classes
    BasicAuthStrategyScentryStrategy
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RemoteAddress

Inherited from ScentryStrategy[UserType]

Inherited from AnyRef

Inherited from Any

Ungrouped