Class RoleBasedAuthorization
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.authorization.Authorization
-
- io.vertx.mutiny.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 Mutiny-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(io.vertx.ext.auth.authorization.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)
io.vertx.ext.auth.authorization.RoleBasedAuthorization
getDelegate()
String
getResource()
String
getRole()
int
hashCode()
static RoleBasedAuthorization
newInstance(io.vertx.ext.auth.authorization.RoleBasedAuthorization arg)
RoleBasedAuthorization
setResource(String resource)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.authorization.Authorization
match, match, newInstance, verify
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<RoleBasedAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
RoleBasedAuthorization
public RoleBasedAuthorization(io.vertx.ext.auth.authorization.RoleBasedAuthorization delegate)
-
RoleBasedAuthorization
public RoleBasedAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.authorization.RoleBasedAuthorization getDelegate()
- Overrides:
getDelegate
in classAuthorization
-
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
-
create
public static RoleBasedAuthorization create(String role)
-
getRole
public String getRole()
- Returns:
-
getResource
public String getResource()
- Returns:
-
setResource
public RoleBasedAuthorization setResource(String resource)
- Parameters:
resource
-- Returns:
-
newInstance
public static RoleBasedAuthorization newInstance(io.vertx.ext.auth.authorization.RoleBasedAuthorization arg)
-
-