|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Authentication utility methods.
Field Summary | |
---|---|
def |
passwordEncoder
|
def |
securityConfig
|
boolean |
transactional
|
Constructor Summary | |
AuthenticateService()
|
Method Summary | |
---|---|
String |
encodePassword(String passwd)
|
ConfigObject |
getSecurityConfig()
Load the security configuration. |
boolean |
ifAllGranted(def role)
dependency injection for the password encoder |
boolean |
ifAnyGranted(def role)
|
boolean |
ifNotGranted(def role)
|
boolean |
isAjax(def request)
Check if the request was triggered by an Ajax call. |
boolean |
isLoggedIn()
|
String |
passwordEncoder(String passwd)
returns a MessageDigest password. |
def |
principal()
Get the currently logged in user's principal. |
def |
userDomain()
Get the currently logged in user's domain class. |
Constructor Detail |
---|
AuthenticateService()
Method Detail |
---|
String encodePassword(String passwd)
ConfigObject getSecurityConfig()
boolean ifAllGranted(def role)
boolean ifAnyGranted(def role)
boolean ifNotGranted(def role)
boolean isAjax(def request)
true
if Ajax
boolean isLoggedIn()
String passwordEncoder(String passwd)
encodePassword
instead
public def principal()
null
if not logged in
public def userDomain()
null
if not logged in