org.scalatra.auth.strategy

BasicAuthStrategy

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Abstract Value Members

  1. abstract def getUserId(user: UserType): String

    Attributes
    protected
  2. abstract def validate(userName: String, password: String): Option[UserType]

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def afterAuthenticate(winningStrategy: Symbol, user: UserType): Unit

    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
  7. def afterFetch(user: UserType): Unit

    Perform stuff after fetching and serializing the user from session

    Perform stuff after fetching and serializing the user from session

    Definition Classes
    ScentryStrategy
  8. def afterLogout(user: UserType): Unit

    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
  9. def afterSetUser(user: UserType): Unit

    Perform stuff after setting the user in the session

    Perform stuff after setting the user in the session

    Definition Classes
    BasicAuthStrategyScentryStrategy
  10. val app: ScalatraKernel

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

    Definition Classes
    Any
  12. def authenticate(): Option[UserType]

    Perform the authentication for this strategy

    Perform the authentication for this strategy

    returns

    a UserType option where None indicates auth failure

    Definition Classes
    BasicAuthStrategyScentryStrategy
  13. def beforeAuthenticate: Unit

    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
  14. def beforeFetch[IdType](userId: IdType): Unit

    Perform stuff before fetching and serializing the user from session

    Perform stuff before fetching and serializing the user from session

    Definition Classes
    ScentryStrategy
  15. def beforeLogout(user: UserType): Unit

    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
  16. def beforeSetUser(user: UserType): Unit

    Perform stuff before setting the user in the session

    Perform stuff before setting the user in the session

    Definition Classes
    ScentryStrategy
  17. def challenge: String

    Attributes
    protected
  18. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    Any
  26. def isValid: Boolean

    Indicates if this strategy should be run.

    Indicates if this strategy should be run.

    returns

    a Boolean to indicate validity

    Definition Classes
    BasicAuthStrategyScentryStrategy
  27. def name: Symbol

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

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

    Definition Classes
    ScentryStrategy
  32. def remoteAddress: String

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

  34. implicit def requestWrapper(s: HttpServletRequest): RichRequest

    Attributes
    protected
    Definition Classes
    ScentryStrategy
  35. implicit def sessionWrapper(s: HttpSession): RichSession

    Attributes
    protected
    Definition Classes
    ScentryStrategy
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def unauthenticated(): Unit

    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
  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def authenticate_!: Option[UserType]

    Definition Classes
    ScentryStrategy
    Annotations
    @deprecated
    Deprecated

    use authenticate()

  2. def valid_?: Boolean

    Definition Classes
    ScentryStrategy
    Annotations
    @deprecated
    Deprecated

    use isValid

Inherited from RemoteAddress

Inherited from ScentryStrategy[UserType]

Inherited from AnyRef

Inherited from Any

Ungrouped