Groovy Documentation

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.


Property Summary
TokenStorageService tokenStorageService

 
Constructor Summary
RestAuthenticationProvider()

 
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()
 

Property Detail

tokenStorageService

TokenStorageService tokenStorageService


 
Constructor Detail

RestAuthenticationProvider

RestAuthenticationProvider()


 
Method Detail

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