Class PermissionBasedAuthorization
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authorization.Authorization
-
- io.vertx.reactivex.ext.auth.authorization.PermissionBasedAuthorization
-
public class PermissionBasedAuthorization extends Authorization
Represents a permission Note that the permission can optionally be assigned to a specific resource NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<PermissionBasedAuthorization>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description PermissionBasedAuthorization(PermissionBasedAuthorization delegate)
PermissionBasedAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PermissionBasedAuthorization
create(String permission)
boolean
equals(Object o)
PermissionBasedAuthorization
getDelegate()
String
getPermission()
returns the value of the permissionString
getResource()
returns an optional resource that the permission is assigned-onint
hashCode()
static PermissionBasedAuthorization
newInstance(PermissionBasedAuthorization arg)
PermissionBasedAuthorization
setResource(String resource)
sets an optional resource that the permission is assigned-onString
toString()
-
Methods inherited from class io.vertx.reactivex.ext.auth.authorization.Authorization
match, match, newInstance, verify
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<PermissionBasedAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
PermissionBasedAuthorization
public PermissionBasedAuthorization(PermissionBasedAuthorization delegate)
-
PermissionBasedAuthorization
public PermissionBasedAuthorization(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classAuthorization
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAuthorization
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAuthorization
-
getDelegate
public PermissionBasedAuthorization getDelegate()
- Overrides:
getDelegate
in classAuthorization
-
create
public static PermissionBasedAuthorization create(String permission)
-
getPermission
public String getPermission()
returns the value of the permission- Returns:
-
getResource
public String getResource()
returns an optional resource that the permission is assigned-on- Returns:
-
setResource
public PermissionBasedAuthorization setResource(String resource)
sets an optional resource that the permission is assigned-on- Parameters:
resource
-- Returns:
-
newInstance
public static PermissionBasedAuthorization newInstance(PermissionBasedAuthorization arg)
-
-