| Package | Description |
|---|---|
| com.authlete.common.api |
The definition of Authlete API (
AuthleteApi) and the factory class (AuthleteApiFactory). |
| com.authlete.common.dto |
Requests to and responses from Authlete APIs and some data structures.
|
| Modifier and Type | Method and Description |
|---|---|
TokenCreateResponse |
AuthleteApi.tokenCreate(TokenCreateRequest request)
Call Authlete's
/auth/token/create API. |
| Modifier and Type | Method and Description |
|---|---|
TokenCreateRequest |
TokenCreateRequest.setAccessToken(String accessToken)
Set the access token.
|
TokenCreateRequest |
TokenCreateRequest.setAccessTokenDuration(long accessTokenDuration)
Set the duration of a newly created access token in seconds.
|
TokenCreateRequest |
TokenCreateRequest.setAccessTokenPersistent(boolean persistent)
Set whether the access token expires or not.
|
TokenCreateRequest |
TokenCreateRequest.setClientId(long clientId)
Set the client ID that will be associated with a newly created
access token.
|
TokenCreateRequest |
TokenCreateRequest.setClientIdAliasUsed(boolean used)
Set the flag which indicates whether to emulate that the client ID alias is used
instead of the original numeric client ID when a new access token is created.
|
TokenCreateRequest |
TokenCreateRequest.setGrantType(GrantType grantType)
Set the grant type for a newly created access token.
|
TokenCreateRequest |
TokenCreateRequest.setProperties(Property[] properties)
Set extra properties to associate with an access token which will
be issued by this request.
|
TokenCreateRequest |
TokenCreateRequest.setRefreshToken(String refreshToken)
Set the refresh token.
|
TokenCreateRequest |
TokenCreateRequest.setRefreshTokenDuration(long refreshTokenDuration)
Set the duration of a newly created refresh token in seconds.
|
TokenCreateRequest |
TokenCreateRequest.setScopes(String[] scopes)
Set the scopes that will be associated with a newly created
access token.
|
TokenCreateRequest |
TokenCreateRequest.setSubject(String subject)
Set the subject (= unique identifier) of the user who will be
associated with a newly created access token.
|
Copyright © 2019. All rights reserved.