public interface AuthorizationCodeServices
Modifier and Type | Method and Description |
---|---|
OAuth2Authentication |
consumeAuthorizationCode(String code)
Consume a authorization code.
|
String |
createAuthorizationCode(OAuth2Authentication authentication)
Create a authorization code for the specified authentications.
|
String createAuthorizationCode(OAuth2Authentication authentication)
authentication
- The authentications to store.OAuth2Authentication consumeAuthorizationCode(String code) throws InvalidGrantException
code
- The authorization code to consume.InvalidGrantException
- If the authorization code is invalid or expired.Copyright © 2019. All rights reserved.