public interface OAuthTokenIssuer
Modifier and Type | Interface and Description |
---|---|
static class |
OAuthTokenIssuer.OAuth2AccessTokenRequest |
static class |
OAuthTokenIssuer.OAuth2AccessTokenResult
Result of programmatic access token generation.
|
Modifier and Type | Method and Description |
---|---|
OAuthTokenIssuer.OAuth2AccessTokenResult |
issueToken(OAuthTokenIssuer.OAuth2AccessTokenRequest tokenRequest)
Issue token for principal.
|
OAuthTokenIssuer.OAuth2AccessTokenResult |
issueToken(java.lang.String login,
java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.Object> loginParams)
Issue token for principal.
|
OAuthTokenIssuer.OAuth2AccessTokenResult issueToken(java.lang.String login, java.util.Locale locale, java.util.Map<java.lang.String,java.lang.Object> loginParams)
login
- an existing user loginlocale
- localeloginParams
- params that are passed to login mechanismorg.springframework.security.authentication.BadCredentialsException
- in case of user is now allowed to use REST-API or middleware
throws LoginException
during loginOAuthTokenIssuer.OAuth2AccessTokenResult issueToken(OAuthTokenIssuer.OAuth2AccessTokenRequest tokenRequest)
tokenRequest
- login and token parametersorg.springframework.security.authentication.BadCredentialsException
- in case of user is now allowed to use REST-API or middleware
throws LoginException
during login