Class

org.ada.web.security

CustomHandlerCacheImpl

Related Doc: package security

Permalink

class CustomHandlerCacheImpl extends HandlerCache with AdaAuthConfig

Annotations
@Singleton()
Linear Supertypes
AdaAuthConfig, AuthConfig, HandlerCache, () ⇒ DeadboltHandler, (HandlerKey) ⇒ DeadboltHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CustomHandlerCacheImpl
  2. AdaAuthConfig
  3. AuthConfig
  4. HandlerCache
  5. Function0
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CustomHandlerCacheImpl(userManager: UserManager)

    Permalink
    Annotations
    @Inject()

Type Members

  1. type Authority = Role

    Permalink

    Play2-auth specific.

    Play2-auth specific. A type that is defined by every action for authorization. Set to deadbolt's Role class.

    Definition Classes
    AdaAuthConfig → AuthConfig
  2. type Id = String

    Permalink

    A type that is used to identify a user.

    A type that is used to identify a user. String, Int, Long and so on.

    Definition Classes
    AdaAuthConfig → AuthConfig
  3. type User = server.models.User

    Permalink

    Play2-auth specific.

    Play2-auth specific. Type defintion for User object. Set to AbstractUser, a class extending deadbolt's Subject.

    Definition Classes
    AdaAuthConfig → AuthConfig
  4. class SubjectCachingHandler extends DeadboltHandler

    Permalink
    Definition Classes
    HandlerCache
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.1) Use the subject accessible via AuthenticatedRequest instead. This will be removed in Deadbolt 2.6.

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 andThen[A](g: (DeadboltHandler) ⇒ A): (HandlerKey) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(handlerKey: HandlerKey): DeadboltHandler

    Permalink
    Definition Classes
    CustomHandlerCacheImpl → Function1
  6. def apply(): DeadboltHandler

    Permalink
    Definition Classes
    CustomHandlerCacheImpl → Function0
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def authenticationFailed(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    If the user is not logged in and tries to access a protected resource, redirect to login page

    If the user is not logged in and tries to access a protected resource, redirect to login page

    Definition Classes
    AdaAuthConfig → AuthConfig
  9. def authorizationFailed(request: RequestHeader, user: User, authority: Option[Authority])(implicit context: ExecutionContext): Future[Result]

    Permalink

    Only used, if play2-auth authorization is required.

    Only used, if play2-auth authorization is required. However, Play2-auth authorization is never used.

    Shows error message on authorization failure.

    Definition Classes
    AdaAuthConfig → AuthConfig
  10. def authorize(user: User, authority: Authority)(implicit ctx: ExecutionContext): Future[Boolean]

    Permalink

    Unused.

    Unused. This is only used, if play2-auth authorization is required. However, Play2-auth authorization is never used.

    Maps users to permissions.

    Definition Classes
    AdaAuthConfig → AuthConfig
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compose[A](g: (A) ⇒ HandlerKey): (A) ⇒ DeadboltHandler

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. def currentUser(request: Request[_]): Future[Option[User]]

    Permalink
    Definition Classes
    AdaAuthConfig
  14. val defaultHandlerName: String

    Permalink
    Definition Classes
    HandlerCache
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. lazy val idContainer: AsyncIdContainer[Id]

    Permalink
    Definition Classes
    AuthConfig
  21. val idTag: ClassTag[Id]

    Permalink

    A ClassTag is used to retrieve an id from the Cache API.

    A ClassTag is used to retrieve an id from the Cache API. Use something like this:

    Definition Classes
    AdaAuthConfig → AuthConfig
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def loginSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    Where to redirect the user after a successful login.

    Where to redirect the user after a successful login.

    Definition Classes
    AdaAuthConfig → AuthConfig
  24. def logoutSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result]

    Permalink

    Where to redirect the user after logging out

    Where to redirect the user after logging out

    Definition Classes
    AdaAuthConfig → AuthConfig
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def resolveUser(id: Id)(implicit ctx: ExecutionContext): Future[Option[User]]

    Permalink

    A function that returns a User object from an Id.

    A function that returns a User object from an Id. Retrieves user from Account class.

    Definition Classes
    AdaAuthConfig → AuthConfig
  29. val sessionTimeoutInSeconds: Int

    Permalink

    The session timeout in seconds

    The session timeout in seconds

    Definition Classes
    AdaAuthConfig → AuthConfig
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Function0 → AnyRef → Any
  32. lazy val tokenAccessor: CookieTokenAccessor

    Permalink

    (Optional) You can custom SessionID Token handler.

    (Optional) You can custom SessionID Token handler. Default implementation use Cookie.

    Definition Classes
    AdaAuthConfig → AuthConfig
  33. val userManager: UserManager

    Permalink
    Definition Classes
    CustomHandlerCacheImplAdaAuthConfig
  34. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. final lazy val cookieDomainOption: Option[String]

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  2. final lazy val cookieHttpOnlyOption: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  3. final lazy val cookieName: String

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.x. use CookieTokenAccessor constructor

  4. final lazy val cookiePathOption: String

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  5. final lazy val cookieSecureOption: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  6. final lazy val isTransientCookie: Boolean

    Permalink
    Definition Classes
    AuthConfig
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) it will be deleted since 0.14.0. use CookieTokenAccessor constructor

  7. def withCaching(handlerKey: HandlerKey): DeadboltHandler

    Permalink
    Definition Classes
    HandlerCache
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.1) Use the subject accessible via AuthenticatedRequest instead. This will be removed in Deadbolt 2.6.

  8. def withCaching: SubjectCachingHandler

    Permalink
    Definition Classes
    HandlerCache
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.1) Use the subject accessible via AuthenticatedRequest instead. This will be removed in Deadbolt 2.6.

Inherited from AdaAuthConfig

Inherited from AuthConfig

Inherited from HandlerCache

Inherited from () ⇒ DeadboltHandler

Inherited from (HandlerKey) ⇒ DeadboltHandler

Inherited from AnyRef

Inherited from Any

Ungrouped