@Deprecated public abstract class RandomValueAuthorizationCodeServices extends Object implements AuthorizationCodeServices
Constructor and Description |
---|
RandomValueAuthorizationCodeServices()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
OAuth2Authentication |
consumeAuthorizationCode(String code)
Deprecated.
Consume a authorization code.
|
String |
createAuthorizationCode(OAuth2Authentication authentication)
Deprecated.
Create a authorization code for the specified authentications.
|
protected abstract OAuth2Authentication |
remove(String code)
Deprecated.
|
protected abstract void |
store(String code,
OAuth2Authentication authentication)
Deprecated.
|
public RandomValueAuthorizationCodeServices()
protected abstract void store(String code, OAuth2Authentication authentication)
protected abstract OAuth2Authentication remove(String code)
public String createAuthorizationCode(OAuth2Authentication authentication)
AuthorizationCodeServices
createAuthorizationCode
in interface AuthorizationCodeServices
authentication
- The authentications to store.public OAuth2Authentication consumeAuthorizationCode(String code) throws InvalidGrantException
AuthorizationCodeServices
consumeAuthorizationCode
in interface AuthorizationCodeServices
code
- The authorization code to consume.InvalidGrantException
- If the authorization code is invalid or expired.Copyright © 2019. All rights reserved.