Class Authorization
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.authorization.Authorization
-
- Direct Known Subclasses:
AndAuthorization
,NotAuthorization
,OrAuthorization
,PermissionBasedAuthorization
,RoleBasedAuthorization
,WildcardPermissionBasedAuthorization
public class Authorization extends Object
Interface representing any kind of authorization such as:- Role based authorization
- Permission based authorization
- Logical authorization (AND, OR, NOT)
- Time based authorization (ie: allow access the last 5 days of the month, from 8am till 10am, etc.)
- Context based authorization (ie: allow access if the ip address is 'xxx.xxx.xxx.xxx')
- Custom based authorization (ie: based on a script or hard-coded code specific to an application)
- etc.
AndAuthorization
NotAuthorization
OrAuthorization
PermissionBasedAuthorization
RoleBasedAuthorization
WildcardPermissionBasedAuthorization
original
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Authorization>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description Authorization(io.vertx.ext.auth.authorization.Authorization delegate)
Authorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.vertx.ext.auth.authorization.Authorization
getDelegate()
int
hashCode()
boolean
match(AuthorizationContext context)
boolean
match(User user)
static Authorization
newInstance(io.vertx.ext.auth.authorization.Authorization arg)
String
toString()
boolean
verify(Authorization authorization)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<Authorization> __TYPE_ARG
-
-
Constructor Detail
-
Authorization
public Authorization(io.vertx.ext.auth.authorization.Authorization delegate)
-
Authorization
public Authorization(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.authorization.Authorization getDelegate()
-
match
public boolean match(AuthorizationContext context)
- Parameters:
context
- the context.- Returns:
- true if there's a match.
-
verify
public boolean verify(Authorization authorization)
- Parameters:
authorization
- the authorization.- Returns:
- true if implies the argument.
-
match
public boolean match(User user)
- Parameters:
user
- the user.- Returns:
- true if there's a match
-
newInstance
public static Authorization newInstance(io.vertx.ext.auth.authorization.Authorization arg)
-
-