|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Rewrote to the Groovy from Java source of org.acegisecurity.taglibs.authz.AuthorizeTag for to use from the controllers and a taglib.
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)
|
boolean |
ifAnyGranted(def role)
|
boolean |
ifNotGranted(def role)
|
boolean |
isAjax(def request)
Check if the request was triggered by an Ajax call. |
boolean |
isLoggedIn()
Quick check to see if the current user is logged in. |
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()
true
if the principal is a UserDetails
or subclass
String passwordEncoder(String passwd)
encodePassword
instead
public def principal()
null
if not logged in
public def userDomain()
null
if not logged in