public class ClientExtension extends Object implements Serializable
There are some attributes that belong to a client application but should not be changed by the developer of the client application. Basically, this class holds such attributes.
For example, an authorization server may narrow the range of scopes (permissions) that a particular client application can request. In this case, it is meaningless if the developer of the client application can freely decide the set of requestable scopes. It is not the developer of the client application but the administrator of the authorization server that should be allowed to define the set of scopes that the client application can request.
| Constructor and Description |
|---|
ClientExtension() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getRequestableScopes()
Get the set of scopes that this client application can request when
"Requestable Scopes per Client" is enabled (= when
isRequestableScopesEnabled() returns true). |
boolean |
isRequestableScopesEnabled()
Check whether "Requestable Scopes per Client" is enabled or not.
|
ClientExtension |
setRequestableScopes(Set<String> scopes)
Set the set of scopes that this client application can request when
"Requestable Scopes per Client" is enabled (= when
isRequestableScopesEnabled() returns true). |
ClientExtension |
setRequestableScopes(String[] scopes)
Set the set of scopes that this client application can request when
"Requestable Scopes per Client" is enabled (= when
isRequestableScopesEnabled() returns true). |
ClientExtension |
setRequestableScopesEnabled(boolean enabled)
Enable or disable "Requestable Scopes per Client".
|
public boolean isRequestableScopesEnabled()
If this method returns true, a special set of scopes (permissions)
is defined on the server side (the requestableScopes array
represents the special set) and scopes which this client application can
request are limited to the scopes listed in the set. In other words, this
application cannot request scopes that are not included in the set. To be
specific, this client application cannot list other scopes in the scope request parameter when it makes an authorization request. To be
exact, other scopes can be listed but will be ignored by the authorization
server.
On the other hand, if this method returns false, the valid set of
scopes (permissions) that this client application can request is equal to
the whole scope set defined by the authorization server.
true if "Requestable Scopes per Client" is enabled
for this client. Otherwise, false.public ClientExtension setRequestableScopesEnabled(boolean enabled)
See the description of isRequestableScopesEnabled() for details
about "Requestable Scopes per Client".
enabled - true to enable "Requestable Scopes per Client".
false to disable it.this object.public String[] getRequestableScopes()
isRequestableScopesEnabled() returns true).
See the description of isRequestableScopesEnabled() for details
about "Requestable Scopes per Client".
public ClientExtension setRequestableScopes(String[] scopes)
isRequestableScopesEnabled() returns true).
See the description of isRequestableScopesEnabled() for details
about "Requestable Scopes per Client".
scopes - A set of scopes.this object.public ClientExtension setRequestableScopes(Set<String> scopes)
isRequestableScopesEnabled() returns true).
See the description of isRequestableScopesEnabled() for details
about "Requestable Scopes per Client".
scopes - A set of scopes.this object.Copyright © 2017. All rights reserved.