SpringSource/spring-security-oauth — pull request #26 by aanganes (2012-04-06 20:05:23+00:00)
Title: Extend the Token lifecycle in the TokenServices APIs

This is in response to https://jira.springsource.org/browse/SECOAUTH-231
I added enhance and finish methods to the AuthorizationServerTokenServices interface, and updated AuthorizationCodeTokenGranter to call those two methods after creating the token. I also updated RandomValueTokenServices to implement the methods with stubs.

The other token granter implementations would also need to be updated to call the enhance and finish methods.

If this change works for you, we'd be happy to provide unit tests to cover the new functionality.