|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectrealms.CowDbRealm
class CowDbRealm
Determines whether or not a user has permission to do something. CowDbRealm use plain database authentication and rights management, via a custom permission, gate.cow.CowPermission
Based on JsecDbRealm.groovy from the Grails JSecurity plugin
| Property Summary | |
|---|---|
static def |
authTokenClass
The JSecurity authentication token supported by this realm. |
def |
credentialMatcher
Matches an authToken against the database |
| Constructor Summary | |
CowDbRealm()
|
|
| Method Summary | |
|---|---|
def
|
authenticate(def authToken)
Authenticate a user in the CoW database realm. |
def
|
hasAllRoles(def principal, def roles)
Determines whether a user has all the particular role or not. |
def
|
hasRole(def principal, def roleName)
Determines whether a user has a particular role or not. |
def
|
isPermitted(def principal, def requiredPermission)
Does the user have the given permission directly associated with themselves? |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
| Property Detail |
|---|
static def authTokenClass
def credentialMatcher
| Constructor Detail |
|---|
CowDbRealm()
| Method Detail |
|---|
public def authenticate(def authToken)
public def hasAllRoles(def principal, def roles)
public def hasRole(def principal, def roleName)
public def isPermitted(def principal, def requiredPermission)
Groovy Documentation