Class OAuth2ResourceOwnerPasswordCredentialsGrant
java.lang.Object
com.linecorp.armeria.client.auth.oauth2.OAuth2ResourceOwnerPasswordCredentialsGrant
- All Implemented Interfaces:
OAuth2AuthorizationGrant
@Deprecated
public final class OAuth2ResourceOwnerPasswordCredentialsGrant
extends Object
implements OAuth2AuthorizationGrant
Deprecated.
An implementation of OAuth 2.0 Resource Owner Password Credentials Grant flow to obtain Access Token,
as per [RFC6749], Section 4.3.
Implements Access Token loading, storing, obtaining and refreshing.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Produces OAuth 2.0 Access Token
-
Method Details
-
builder
@Deprecated public static OAuth2ResourceOwnerPasswordCredentialsGrantBuilder builder(WebClient accessTokenEndpoint, String accessTokenEndpointPath) Deprecated.Creates a new builder forOAuth2ResourceOwnerPasswordCredentialsGrant
.- Parameters:
accessTokenEndpoint
- AWebClient
to facilitate an Access Token request. Must correspond to the Access Token endpoint of the OAuth 2 system.accessTokenEndpointPath
- A URI path that corresponds to the Access Token endpoint of the
-
getAccessToken
Deprecated.Description copied from interface:OAuth2AuthorizationGrant
Produces OAuth 2.0 Access Token- Specified by:
getAccessToken
in interfaceOAuth2AuthorizationGrant
-
OAuth2AuthorizationGrantBuilder
withAccessTokenRequest.ofResourceOwnerPassword(String, String)
instead.