Class RoleBasedAuthorization
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authorization.Authorization
-
- io.vertx.reactivex.ext.auth.authorization.RoleBasedAuthorization
-
public class RoleBasedAuthorization extends Authorization
Represents a role. Note that this role can optionally be assigned to a specific resource NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<RoleBasedAuthorization>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description RoleBasedAuthorization(RoleBasedAuthorization delegate)RoleBasedAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoleBasedAuthorizationcreate(String role)booleanequals(Object o)RoleBasedAuthorizationgetDelegate()StringgetResource()returns an optional resource that the role is assigned-onStringgetRole()returns the roleinthashCode()static RoleBasedAuthorizationnewInstance(RoleBasedAuthorization arg)RoleBasedAuthorizationsetResource(String resource)sets an optional resource that the role is assigned-onStringtoString()-
Methods inherited from class io.vertx.reactivex.ext.auth.authorization.Authorization
match, match, newInstance, verify
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<RoleBasedAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
RoleBasedAuthorization
public RoleBasedAuthorization(RoleBasedAuthorization delegate)
-
RoleBasedAuthorization
public RoleBasedAuthorization(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAuthorization
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAuthorization
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAuthorization
-
getDelegate
public RoleBasedAuthorization getDelegate()
- Overrides:
getDelegatein classAuthorization
-
create
public static RoleBasedAuthorization create(String role)
-
getRole
public String getRole()
returns the role- Returns:
-
getResource
public String getResource()
returns an optional resource that the role is assigned-on- Returns:
-
setResource
public RoleBasedAuthorization setResource(String resource)
sets an optional resource that the role is assigned-on- Parameters:
resource-- Returns:
-
newInstance
public static RoleBasedAuthorization newInstance(RoleBasedAuthorization arg)
-
-