Groovy Documentation

com.odobo.grails.plugin.springsecurity.rest.token.rendering
[Groovy] Class DefaultRestAuthenticationTokenJsonRenderer

java.lang.Object
  com.odobo.grails.plugin.springsecurity.rest.token.rendering.DefaultRestAuthenticationTokenJsonRenderer
All Implemented Interfaces:
RestAuthenticationTokenJsonRenderer

@groovy.util.logging.Log4j
class DefaultRestAuthenticationTokenJsonRenderer

Generates a JSON response like the following: {"username":"john.doe","token":"1a2b3c4d","roles":["ADMIN","USER"]}


Constructor Summary
DefaultRestAuthenticationTokenJsonRenderer()

 
Method Summary
java.lang.String generateJson(RestAuthenticationToken restAuthenticationToken)

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

Constructor Detail

DefaultRestAuthenticationTokenJsonRenderer

DefaultRestAuthenticationTokenJsonRenderer()


 
Method Detail

generateJson

java.lang.String generateJson(RestAuthenticationToken restAuthenticationToken)


 

Groovy Documentation