Package io.vertx.ext.auth.authorization
Interface AuthorizationContext
-
public interface AuthorizationContext
The AuthorizationContext contains properties that can be used to match authorizations.- Author:
- Stephane Bastian
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AuthorizationContext
create(User user)
Factory for Authorization Contextstatic AuthorizationContext
create(User user, MultiMap variables)
Factory for Authorization ContextUser
user()
Get the authenticated userMultiMap
variables()
-
-
-
Method Detail
-
create
static AuthorizationContext create(User user)
Factory for Authorization Context- Parameters:
user
- a user- Returns:
- a AuthorizationContext instance
-
create
static AuthorizationContext create(User user, MultiMap variables)
Factory for Authorization Context- Parameters:
user
- a user- Returns:
- a AuthorizationContext instance
-
user
User user()
Get the authenticated user- Returns:
- the user
-
variables
MultiMap variables()
- Returns:
- a Multimap containing variable names and values that can be resolved
at runtime by
Authorization
Authorizations
-
-