public class OA2Client extends Client implements OA2ClientScopes
Created by Jeff Gaynor
on 3/14/14 at 11:04 AM
Modifier and Type | Field and Description |
---|---|
protected net.sf.json.JSONObject |
config |
protected boolean |
publicClient |
Constructor and Description |
---|
OA2Client(Identifier identifier) |
Modifier and Type | Method and Description |
---|---|
OA2Client |
clone() |
boolean |
equals(Object obj) |
Collection<String> |
getCallbackURIs() |
net.sf.json.JSONObject |
getConfig()
The JSON configuration object.
|
String |
getIssuer() |
Collection<LDAPConfiguration> |
getLdaps() |
long |
getRtLifetime() |
Collection<String> |
getScopes() |
boolean |
hasConfig() |
boolean |
isPublicClient() |
boolean |
isRTLifetimeEnabled()
This returns whether or not this client is configured to return refresh tokens.
|
boolean |
isSignTokens() |
protected void |
populateClone(BaseClient c) |
void |
setCallbackURIs(Collection<String> callbackURIs) |
void |
setConfig(net.sf.json.JSONObject config) |
void |
setIssuer(String issuer) |
void |
setLdaps(Collection<LDAPConfiguration> ldaps) |
void |
setPublicClient(boolean publicClient) |
void |
setRtLifetime(long rtLifetime) |
void |
setScopes(Collection<String> scopes) |
void |
setSignTokens(boolean signTokens) |
String |
toString() |
getErrorUri, getHomeUri, isProxyLimited, setErrorUri, setHomeUri, setProxyLimited
getCreationTS, getEmail, getLastModifiedTS, getName, getSecret, setCreationTS, setEmail, setLastModifiedTS, setName, setSecret
getIdentifier, getIdentifierString, setIdentifier
protected boolean publicClient
protected net.sf.json.JSONObject config
public OA2Client(Identifier identifier)
public OA2Client clone()
clone
in interface Identifiable
clone
in class Client
protected void populateClone(BaseClient c)
populateClone
in class Client
public boolean isPublicClient()
public void setPublicClient(boolean publicClient)
public boolean isSignTokens()
public void setSignTokens(boolean signTokens)
public String getIssuer()
public void setIssuer(String issuer)
public Collection<String> getCallbackURIs()
public void setCallbackURIs(Collection<String> callbackURIs)
public long getRtLifetime()
public void setRtLifetime(long rtLifetime)
public boolean isRTLifetimeEnabled()
public Collection<String> getScopes()
getScopes
in interface OA2ClientScopes
public void setScopes(Collection<String> scopes)
public Collection<LDAPConfiguration> getLdaps()
public void setLdaps(Collection<LDAPConfiguration> ldaps)
public net.sf.json.JSONObject getConfig()
{ "config":"comment", "claims":{"sources":[JSON], "logic":[JSON], "source_config":[JSON], "processing":[JSON]} }
JSON may be either a single JSON object or an array of them. If a single, it is converted to an array of a single object before processing.
JSON may be a logic block (which consists of various JSON functors.
{ "$if":conditionals, "$then":"actions", "$else":"other actions" }
conditionals, actions and other actions are JSON objects or arrays of them as well. Note that the conditional must be a functor that evaluates to a logical value.
public boolean hasConfig()
public void setConfig(net.sf.json.JSONObject config)
Copyright © 2019. All Rights Reserved.