mitreid-connect
|
公開メンバ関数 | |
String | createAuthorizationCode (OAuth2Authentication authentication) |
OAuth2Authentication | consumeAuthorizationCode (String code) throws InvalidGrantException |
void | clearExpiredAuthorizationCodes () |
AuthorizationCodeRepository | getRepository () |
void | setRepository (AuthorizationCodeRepository repository) |
int | getAuthCodeExpirationSeconds () |
void | setAuthCodeExpirationSeconds (int authCodeExpirationSeconds) |
非公開変数類 | |
AuthorizationCodeRepository | repository |
AuthenticationHolderRepository | authenticationHolderRepository |
int | authCodeExpirationSeconds = 60 * 5 |
RandomValueStringGenerator | generator = new RandomValueStringGenerator() |
静的非公開変数類 | |
static final Logger | logger = LoggerFactory.getLogger(DefaultOAuth2AuthorizationCodeService.class) |
Database-backed, random-value authorization code service implementation.
|
inline |
Find and remove all expired auth codes.
|
inline |
Consume a given authorization code. Match the provided string to an AuthorizationCodeEntity. If one is found, return the authentication associated with the code. If one is not found, throw an InvalidGrantException.
code | the authorization code |
InvalidGrantException,if | an AuthorizationCodeEntity is not found with the given value |
|
inline |
Generate a random authorization code and create an AuthorizationCodeEntity, which will be stored in the repository.
authentication | the authentication of the current user, to be retrieved when the code is consumed |
|
inline |
|
inline |
|
inline |
authCodeExpirationSeconds | the authCodeExpirationSeconds to set |
|
inline |
repository | the repository to set |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |