![JAR search and dependency download from the Maven repository](/logo.png)
no.nrk.ietf.rfc6749.oauth2.AccessTokenRequest Maven / Gradle / Ivy
package no.nrk.ietf.rfc6749.oauth2;
import java.util.Optional;
/**
* There are different kinds of Access Token Requests:
*
* - RFC6749
* section 4.1.3 (Authorization Code Grant)
* - RFC6749
* section 4.3.2 (Resource Owner Password Credentials Grant)
* - RFC6749
* section 4.4.2 (Client Credentials Grant)
*
*/
public abstract class AccessTokenRequest {
/**
* REQUIRED
*/
public abstract String grantType();
/**
* If its a Resource Owner Password Credentials Grant Access Token
* Request
*/
public abstract Optional isPasswordAccessTokenRequest();
/**
* If its a Refresh Access Token Request, as according to
* RFC6749 section 6
* (Refreshing an Access Token).
*/
public abstract Optional isRefreshAccessTokenRequest();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy