org.springframework.security.oauth2.provider.code
Interface AuthorizationCodeServices

All Known Implementing Classes:
InMemoryAuthorizationCodeServices, JdbcAuthorizationCodeServices, RandomValueAuthorizationCodeServices

public interface AuthorizationCodeServices

Services for issuing and storing authorization codes.

Author:
Ryan Heaton

Method Summary
 AuthorizationRequestHolder consumeAuthorizationCode(String code)
          Consume a authorization code.
 String createAuthorizationCode(AuthorizationRequestHolder authentication)
          Create a authorization code for the specified authentications.
 

Method Detail

createAuthorizationCode

String createAuthorizationCode(AuthorizationRequestHolder authentication)
Create a authorization code for the specified authentications.

Parameters:
authentication - The authentications to store.
Returns:
The generated code.

consumeAuthorizationCode

AuthorizationRequestHolder consumeAuthorizationCode(String code)
                                                    throws InvalidGrantException
Consume a authorization code.

Parameters:
code - The authorization code to consume.
Returns:
The authentications associated with the code.
Throws:
InvalidGrantException - If the authorization code is invalid or expired.


Copyright © 2012. All Rights Reserved.