Factory interface for creating Apache Shiro based AuthProvider instances.
| Constructor and description |
|---|
ShiroAuth
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
static ShiroAuth |
create(Vertx vertx, io.vertx.ext.auth.shiro.ShiroAuthRealmType realmType, java.util.Map<java.lang.String, java.lang.Object> config)Create a Shiro auth provider |
static ShiroAuth |
create(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> options)Create a Shiro auth provider |
java.lang.Object |
getDelegate() |
ShiroAuth |
setRolePrefix(java.lang.String rolePrefix)Set the role prefix to distinguish from permissions when checking for isPermitted requests. |
| Methods inherited from class | Name |
|---|---|
class AuthProvider |
authenticate, getDelegate |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a Shiro auth provider
vertx - the Vert.x instancerealmType - the Shiro realm typeconfig - the configCreate a Shiro auth provider
vertx - the Vert.x instanceoptions - the Shiro configuration options (see ShiroAuthOptions)Set the role prefix to distinguish from permissions when checking for isPermitted requests.
rolePrefix - a Prefix e.g.: "role:"