Package com.authlete.common.dto
Class TokenListResponse
- java.lang.Object
-
- com.authlete.common.dto.TokenListResponse
-
- All Implemented Interfaces:
Serializable
public class TokenListResponse extends Object implements Serializable
Response from Authlete's/auth/token/get/listAPI.- Since:
- 2.22, Authlete 1.1.21
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenListResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessToken[]getAccessTokens()Get the list of access tokens that match the query conditions.ClientgetClient()Get the client information associated with the value of'clientIdentifier'parameter in the original request.intgetEnd()Get the end index (exclusive) for the result set of the query.intgetStart()Get the start index (inclusive) for the result set of the query.StringgetSubject()Get the value of'subject'parameter in the original request.intgetTotalCount()Get the total count of access tokens.TokenListResponsesetAccessTokens(AccessToken[] accessTokens)Set the list of access tokens that match the query conditions.TokenListResponsesetClient(Client client)Set the client information associated with the value of'clientIdentifier'parameter in the original request.TokenListResponsesetEnd(int end)Set the end index (exclusive) for the result set of the query.TokenListResponsesetStart(int start)Set the start index (inclusive) for the result set of the query.TokenListResponsesetSubject(String subject)Set the value of'subject'parameter in the original request.TokenListResponsesetTotalCount(int count)Set the total count of access tokens.
-
-
-
Method Detail
-
getStart
public int getStart()
Get the start index (inclusive) for the result set of the query. It is the value contained in the original request (= the value of'start'parameter), or the default value (0) if the original request did not contain the parameter.- Returns:
- The start index for the result set of the query.
-
setStart
public TokenListResponse setStart(int start)
Set the start index (inclusive) for the result set of the query.- Parameters:
start- The start index for the result set of the query.- Returns:
thisobject.
-
getEnd
public int getEnd()
Get the end index (exclusive) for the result set of the query. It is the value contained in the original request (= the value of'end'parameter), or the default value defined in Authlete server if the original request did not contain the parameter.- Returns:
- The end index for the result set of the query.
-
setEnd
public TokenListResponse setEnd(int end)
Set the end index (exclusive) for the result set of the query.- Parameters:
end- The end index for the result set of the query.- Returns:
thisobject.
-
getClient
public Client getClient()
Get the client information associated with the value of'clientIdentifier'parameter in the original request. If the original request did not contain the parameter, this method returnsnull.- Returns:
- The client information associated with the value of
'clientIdentifier'parameter in the original request.nullis returned if the original request did not contain the parameter.
-
setClient
public TokenListResponse setClient(Client client)
Set the client information associated with the value of'clientIdentifier'parameter in the original request.- Parameters:
client- The client information associated with the value of'clientIdentifier'parameter in the original request.- Returns:
thisobject.
-
getSubject
public String getSubject()
Get the value of'subject'parameter in the original request. If the original request did not contain the parameter, this method returnsnull.- Returns:
- The value of
'subject'parameter in the original request.nullis returned if the original request did not contain the parameter.
-
setSubject
public TokenListResponse setSubject(String subject)
Set the value of'subject'parameter in the original request.- Parameters:
subject- The value of'subject'parameter in the original request.- Returns:
thisobject.
-
getTotalCount
public int getTotalCount()
Get the total count of access tokens. The meaning of the total count changes depending on the situation as follows.-
When the value of
'clientIdentifier'parameter isnulland the value of'subject'parameter isnullin the original request, it means the total count of the access tokens associated with the service. -
When the value of
'clientIdentifier'parameter isnulland the value of'subject'parameter is notnullin the original request, it means the total count of the access tokens associated with the subject. -
When the value of
'clientIdentifier'parameter is notnulland the value of'subject'parameter isnullin the original request, it means the total count of the access tokens associated with the client application. -
When the value of
'clientIdentifier'parameter is notnulland the value of'subject'parameter is notnullin the original request, it means the total count of the access tokens associated with the client application and the subject.
- Returns:
- The total count of access tokens.
-
When the value of
-
setTotalCount
public TokenListResponse setTotalCount(int count)
Set the total count of access tokens. The meaning of the total count changes depending on the situation. SeegetTotalCount()for more details.- Returns:
thisobject.
-
getAccessTokens
public AccessToken[] getAccessTokens()
Get the list of access tokens that match the query conditions.- Returns:
- List of access tokens, or
nullwhen no access tokens matched the query conditions.
-
setAccessTokens
public TokenListResponse setAccessTokens(AccessToken[] accessTokens)
Set the list of access tokens that match the query conditions.- Parameters:
clients- List of access tokens, ornullwhen no access tokens matched the query conditions.- Returns:
thisobject.
-
-