com.odobo.grails.plugin.springsecurity.rest
[Groovy] Class RestAuthenticationProvider
java.lang.Object
com.odobo.grails.plugin.springsecurity.rest.RestAuthenticationProvider
- All Implemented Interfaces:
- org.springframework.security.authentication.AuthenticationProvider
@groovy.util.logging.Log4j
class RestAuthenticationProvider
Authenticates a request based on the token passed. This is called by RestTokenValidationFilter.
Method Summary |
org.springframework.security.core.Authentication
|
authenticate(org.springframework.security.core.Authentication authentication)
Returns an authentication object based on the token value contained in the authentication parameter.
|
boolean
|
supports(java.lang.Class authentication)
|
Methods inherited from 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() |
tokenStorageService
TokenStorageService tokenStorageService
-
RestAuthenticationProvider
RestAuthenticationProvider()
-
authenticate
org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
- Returns an authentication object based on the token value contained in the authentication parameter. To do so,
it uses a TokenStorageService.
- throws:
- AuthenticationException
supports
boolean supports(java.lang.Class authentication)
-
Groovy Documentation