public class GTResourceOwnerPasswordCredentials
extends java.lang.Object
GTResourceOwnerPasswordCredentials
supports resource owner password credentials
grant type flow The OAuth 2.0 Authorization Protocol draftModifier and Type | Method and Description |
---|---|
static AccessTokenRequest |
createAccessTokenRequest(OAuth2 data,
java.lang.String username,
java.lang.String password,
java.lang.String scope)
creates 'access token request'
|
public static AccessTokenRequest createAccessTokenRequest(OAuth2 data, java.lang.String username, java.lang.String password, java.lang.String scope)
The parameter scope
may be null
.
data
- a reference to the OAuth2 object instance that contains
information about authorization processusername
- user namepassword
- passwordscope
- a scope of the requestCopyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.