Class AdminClient
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- edu.uiuc.ncsa.security.storage.monitored.Monitored
-
- org.oa4mp.delegation.common.storage.clients.BaseClient
-
- org.oa4mp.server.api.admin.adminClient.AdminClient
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.DateComparable,edu.uiuc.ncsa.security.core.Identifiable,Serializable,Cloneable
public class AdminClient extends org.oa4mp.delegation.common.storage.clients.BaseClient- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_NUMBER_OF_OIDC_CLIENTSThe maximum number of OIDC (i.e. standard) clients an admin client may create before being refused by the system.static StringPUBLIC_KEY_KEYStore in the config for this user.
-
Constructor Summary
Constructors Constructor Description AdminClient(edu.uiuc.ncsa.security.core.Identifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanallowQDLCodeBlocks()booleancanInitializeFlows()org.oa4mp.delegation.common.storage.clients.BaseClientclone()booleanequals(Object obj)net.sf.json.JSONObjectgetConfig()StringgetExternalVIName()The name, used by external applications for their VI.URIgetIdHead()StringgetIssuer()intgetMaxClients()The maximum number of standard clients this admin client can create before the system refuses to accept any more.PublicKeygetPublicKey()edu.uiuc.ncsa.security.core.IdentifiergetVirtualIssuer()booleanhasConfig()booleanhasVirtualIssuer()booleanisAllowCustomIDs()booleanisAllowQDL()booleanisGenerateIDs()booleanisListUsers()If this client can list information about a given users tokens.booleanisListUsersInOtherClients()If this client can list information about a given user's tokens from other clients.booleanisNotifyOnNewClientCreate()Deprecated.booleanisUseTimestampInIDs()protected voidpopulateClone(org.oa4mp.delegation.common.storage.clients.BaseClient client)voidsetAllowCustomIDs(boolean allowCustomIDs)voidsetAllowQDL(boolean allowQDL)voidsetAllowQDLCodeBlocks(boolean allowQDLCodeBlocks)voidsetConfig(net.sf.json.JSONObject config)voidsetExternalVIName(String externalVIName)voidsetGenerateIDs(boolean generateIDs)voidsetIdHead(URI idHead)voidsetInitializeFlows(boolean initializeFlows)voidsetIssuer(String issuer)voidsetListUsers(boolean listUsers)voidsetListUsersInOtherClients(boolean listUserInOtherClients)voidsetMaxClients(int maxClients)voidsetNotifyOnNewClientCreate(boolean notifyOnNewClientCreate)voidsetPublicKey(PublicKey publicKey)voidsetUseTimestampInIDs(boolean useTimestampInIDs)voidsetVirtualIssuer(edu.uiuc.ncsa.security.core.Identifier virtualIssuer)StringtoString()-
Methods inherited from class org.oa4mp.delegation.common.storage.clients.BaseClient
getCreationTS, getEmail, getJWKS, getJwksURI, getLastModifiedTS, getName, getSecret, getServiceClientUsers, hasJWKS, hasJWKSURI, hasServiceClientUsers, isDebugOn, isServiceClient, setCreationTS, setDebugOn, setEmail, setJWKS, setJwksURI, setLastModifiedTS, setName, setSecret, setServiceClient, setServiceClientUsers
-
Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.Monitored
getLastAccessed, setLastAccessed
-
-
-
-
Field Detail
-
DEFAULT_MAX_NUMBER_OF_OIDC_CLIENTS
public static int DEFAULT_MAX_NUMBER_OF_OIDC_CLIENTS
The maximum number of OIDC (i.e. standard) clients an admin client may create before being refused by the system. This is to prevent error (e.g. an admin client is used in a script which is misbehaving). This may be increased and is simply the default for newly created admin clients.
-
PUBLIC_KEY_KEY
public static String PUBLIC_KEY_KEY
Store in the config for this user. This will be used for secure communication.
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey() throws InvalidKeySpecException, NoSuchAlgorithmException
-
setPublicKey
public void setPublicKey(PublicKey publicKey)
-
hasConfig
public boolean hasConfig()
-
getIssuer
public String getIssuer()
-
setIssuer
public void setIssuer(String issuer)
-
getExternalVIName
public String getExternalVIName()
The name, used by external applications for their VI. These names have nothing to do with OA4MP's virtual issuer mechanisms and are typically just displayed to the user at some point. Normally these are identical to the id of the VI, but might be different.- Returns:
-
setExternalVIName
public void setExternalVIName(String externalVIName)
-
getVirtualIssuer
public edu.uiuc.ncsa.security.core.Identifier getVirtualIssuer()
-
setVirtualIssuer
public void setVirtualIssuer(edu.uiuc.ncsa.security.core.Identifier virtualIssuer)
-
hasVirtualIssuer
public boolean hasVirtualIssuer()
-
getConfig
public net.sf.json.JSONObject getConfig()
-
setConfig
public void setConfig(net.sf.json.JSONObject config)
-
getMaxClients
public int getMaxClients()
The maximum number of standard clients this admin client can create before the system refuses to accept any more.- Returns:
-
setMaxClients
public void setMaxClients(int maxClients)
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.oa4mp.delegation.common.storage.clients.BaseClient
-
clone
public org.oa4mp.delegation.common.storage.clients.BaseClient clone()
- Specified by:
clonein interfaceedu.uiuc.ncsa.security.core.Identifiable- Overrides:
clonein classorg.oa4mp.delegation.common.storage.clients.BaseClient
-
populateClone
protected void populateClone(org.oa4mp.delegation.common.storage.clients.BaseClient client)
- Overrides:
populateClonein classorg.oa4mp.delegation.common.storage.clients.BaseClient
-
isAllowQDL
public boolean isAllowQDL()
-
setAllowQDL
public void setAllowQDL(boolean allowQDL)
-
allowQDLCodeBlocks
public boolean allowQDLCodeBlocks()
-
setAllowQDLCodeBlocks
public void setAllowQDLCodeBlocks(boolean allowQDLCodeBlocks)
-
toString
public String toString()
- Overrides:
toStringin classorg.oa4mp.delegation.common.storage.clients.BaseClient
-
isNotifyOnNewClientCreate
public boolean isNotifyOnNewClientCreate()
Deprecated.CIL-607 required a better way to do this for more than new client notifications. UseBaseClient.isDebugOn()instead.- Returns:
-
setNotifyOnNewClientCreate
public void setNotifyOnNewClientCreate(boolean notifyOnNewClientCreate)
-
isListUsers
public boolean isListUsers()
If this client can list information about a given users tokens.- Returns:
-
setListUsers
public void setListUsers(boolean listUsers)
-
isListUsersInOtherClients
public boolean isListUsersInOtherClients()
If this client can list information about a given user's tokens from other clients. This implies thatisListUsers()is true.- Returns:
-
setListUsersInOtherClients
public void setListUsersInOtherClients(boolean listUserInOtherClients)
-
isAllowCustomIDs
public boolean isAllowCustomIDs()
-
setAllowCustomIDs
public void setAllowCustomIDs(boolean allowCustomIDs)
-
isGenerateIDs
public boolean isGenerateIDs()
-
setGenerateIDs
public void setGenerateIDs(boolean generateIDs)
-
getIdHead
public URI getIdHead()
-
setIdHead
public void setIdHead(URI idHead)
-
isUseTimestampInIDs
public boolean isUseTimestampInIDs()
-
setUseTimestampInIDs
public void setUseTimestampInIDs(boolean useTimestampInIDs)
-
canInitializeFlows
public boolean canInitializeFlows()
-
setInitializeFlows
public void setInitializeFlows(boolean initializeFlows)
-
-