public class ClientAuthorizationUpdateRequest extends Object implements Serializable
/client/authorization/update/{clientId} API.
The API is used to update existing access tokens issued to a client application by a user.
subjectThe subject (= identifier) of the end-user who has granted authorization to the client application.
scopesA new set of scopes assigned to existing access tokens. Scopes that are not supported by the service and those that the client application is not allowed to request are ignored on the server side. If the
scopesrequest parameter is not included in a request or its value isnull, the scopes of the access token are not changed.
| Constructor and Description |
|---|
ClientAuthorizationUpdateRequest()
The default constructor.
|
ClientAuthorizationUpdateRequest(String subject,
String[] scopes)
A constructor with a subject and scopes.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getScopes()
Get the new set of scopes assigned to existing access tokens.
|
String |
getSubject()
Get the subject (= unique identifier) of the end-user who has granted
authorization to the client application.
|
ClientAuthorizationUpdateRequest |
setScopes(String[] scopes)
Set a new set of scopes assigned to exiting access tokens.
|
ClientAuthorizationUpdateRequest |
setSubject(String subject)
Set the subject (= unique identifier) of the end-user who has granted
authorization to the client application.
|
public ClientAuthorizationUpdateRequest()
Because the subject parameter is mandatory for
/api/client/authorization/update/{clientId} API,
a non-null value should be set using setSubject(String)
method later.
public ClientAuthorizationUpdateRequest(String subject, String[] scopes)
subject - The subject (= unique identifier) of the end-user.scopes - The new value of scopes that is set to existing access tokens.
null means that scopes are not changed.public String getSubject()
public ClientAuthorizationUpdateRequest setSubject(String subject)
subject - The subject (= unique identifier) of the end-user.this object.public String[] getScopes()
public ClientAuthorizationUpdateRequest setScopes(String[] scopes)
If null is given, the scope set associated with existing access tokens
is not changed.
scopes - A new set of scopes. null means that scopes are not changed.this object.Copyright © 2017. All rights reserved.