public class GrantedScopesGetResponse extends ApiResponse
/client/granted_scopes/get/{clientId} API.| Constructor and Description |
|---|
GrantedScopesGetResponse() |
| Modifier and Type | Method and Description |
|---|---|
long |
getClientId()
Get the client ID.
|
String[] |
getLatestGrantedScopes()
Get the scopes granted to the client application by the last
authorization process by the user (who is identified by the
subject).
|
String[] |
getMergedGrantedScopes()
Get the scopes granted to the client application by all the
past authorization processes.
|
long |
getModifiedAt()
Get the timestamp in milliseconds since Unix epoch
at which this record was modified.
|
long |
getServiceApiKey()
Get the API key of the service.
|
String |
getSubject()
Get the subject (= unique identifier) of the user
who has granted authorization to the client.
|
void |
setClientId(long clientId)
Set the client ID.
|
void |
setLatestGrantedScopes(String[] scopes)
Set the scopes granted to the client application by the last
authorization process by the user (who is identified by the
subject).
|
void |
setMergedGrantedScopes(String[] scopes)
Set the scopes granted to the client application by all the
past authorization processes.
|
void |
setModifiedAt(long modifiedAt)
Set the timestamp in milliseconds since Unix epoch
at which this record was modified.
|
void |
setServiceApiKey(long key)
Set the API key of the service.
|
void |
setSubject(String subject)
Set the subject (= unique identifier) of the user
who has granted authorization to the client.
|
getResultCode, getResultMessage, setResultCode, setResultMessagepublic long getServiceApiKey()
public void setServiceApiKey(long key)
key - The API key of the service.public long getClientId()
public void setClientId(long clientId)
clientId - The client ID.public String getSubject()
public void setSubject(String subject)
subject - The subject of the user.public String[] getLatestGrantedScopes()
null means that there is no record about granted scopes.
An empty array means that there exists a record about granted
scopes but no scope has been granted to the client application.
If the returned array holds some elements, they are the scopes
granted to the client application by the last authorization
process.
public void setLatestGrantedScopes(String[] scopes)
scopes - The scopes granted to the client application by the
last authorization process.public String[] getMergedGrantedScopes()
public void setMergedGrantedScopes(String[] scopes)
scopes - The scopes granted to the client application by all
the past authorization processes.public long getModifiedAt()
public void setModifiedAt(long modifiedAt)
modifiedAt - The timestamp at which this record was modified.Copyright © 2019. All rights reserved.