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 theoriginal
non 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 RoleBasedAuthorization
create(String role)
boolean
equals(Object o)
RoleBasedAuthorization
getDelegate()
String
getResource()
returns an optional resource that the role is assigned-onString
getRole()
returns the roleint
hashCode()
static RoleBasedAuthorization
newInstance(RoleBasedAuthorization arg)
RoleBasedAuthorization
setResource(String resource)
sets an optional resource that the role 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<RoleBasedAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
RoleBasedAuthorization
public RoleBasedAuthorization(RoleBasedAuthorization delegate)
-
RoleBasedAuthorization
public RoleBasedAuthorization(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 RoleBasedAuthorization getDelegate()
- Overrides:
getDelegate
in 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)
-
-