public class OAuth2ResourceOwnerAccessAuthorizeManager extends AbstractOAuth2AccessAuthorizeManager
SecurityCredentials
and creates a SecurityAuthentication object with a bearer token
secret.
Because a pass through of username/password is an anti-pattern in OAuth2, this authorization method should be avoided. However, it may be necessary in some environments to gain access with the ROPC flow.
| Constructor and Description |
|---|
OAuth2ResourceOwnerAccessAuthorizeManager() |
| Modifier and Type | Method and Description |
|---|---|
SecurityAuthentication |
create(SecurityCredentials credentials)
Creates from the credentials the authentication object to access an endpoint.
|
buildAccessDataFromResponse, headers, requestAndCreateAuthFromResponse, urlEncodepublic OAuth2ResourceOwnerAccessAuthorizeManager()
public SecurityAuthentication create(SecurityCredentials credentials)
SecurityAuthorizeManagercredentials - the configured credentials