trait AuthHandler extends Handler[RoutingContext]
Base interface for auth handlers.
An auth handler allows your application to provide authentication/authorization support.
Auth handler requires a io.vertx.scala.ext.web.handler.SessionHandler to be on the routing chain before it.
- Alphabetic
- By Inheritance
- AuthHandler
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
addAuthorities(authorities: Set[String]): AuthHandler
Add a set of required authorities for this auth handler * @param authorities the set of authorities
Add a set of required authorities for this auth handler * @param authorities the set of authorities
- returns
a reference to this, so the API can be used fluently
-
abstract
def
addAuthority(authority: String): AuthHandler
Add a required authority for this auth handler * @param authority the authority
Add a required authority for this auth handler * @param authority the authority
- returns
a reference to this, so the API can be used fluently
- abstract def asJava: AnyRef
-
abstract
def
authorize(user: User, handler: Handler[AsyncResult[Unit]]): Unit
Authorizes the given user against all added authorities.
Authorizes the given user against all added authorities. * @param user a user.
- handler
the handler for the result.
-
abstract
def
authorizeFuture(user: User): Future[Unit]
Like authorize but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
abstract
def
handle(arg0: RoutingContext): Unit
- Definition Classes
- AuthHandler → Handler
-
abstract
def
parseCredentials(context: RoutingContext, handler: Handler[AsyncResult[JsonObject]]): Unit
Parses the credentials from the request into a JsonObject.
Parses the credentials from the request into a JsonObject. The implementation should be able to extract the required info for the auth provider in the format the provider expects. * @param context the routing context
- handler
the handler to be called once the information is available.
-
abstract
def
parseCredentialsFuture(context: RoutingContext): Future[JsonObject]
Like parseCredentials but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )