Class Authorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.Authorization
- All Implemented Interfaces:
MutinyDelegate
- Direct Known Subclasses:
AndAuthorization
,NotAuthorization
,OrAuthorization
,PermissionBasedAuthorization
,RoleBasedAuthorization
,WildcardPermissionBasedAuthorization
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 -
Constructor Summary
ConstructorsConstructorDescriptionAuthorization
(io.vertx.ext.auth.authorization.Authorization delegate) Authorization
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
io.vertx.ext.auth.authorization.Authorization
int
hashCode()
boolean
match
(AuthorizationContext context) boolean
static Authorization
newInstance
(io.vertx.ext.auth.authorization.Authorization arg) toString()
boolean
verify
(Authorization authorization)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Authorization
public Authorization(io.vertx.ext.auth.authorization.Authorization delegate) -
Authorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.Authorization getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
match
- Parameters:
context
- the context.- Returns:
- true if there's a match.
-
verify
- Parameters:
authorization
- the authorization.- Returns:
- true if implies the argument.
-
match
- Parameters:
user
- the user.- Returns:
- true if there's a match
-
newInstance
-