Class AdminClient
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- edu.uiuc.ncsa.security.storage.data.Monitored
-
- org.oa4mp.delegation.common.clients.storage.BaseClient
-
- org.oa4mp.server.api.adminClient.admin.AdminClient
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.DateComparable
,edu.uiuc.ncsa.security.core.Identifiable
,Serializable
,Cloneable
public class AdminClient extends BaseClient
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_NUMBER_OF_OIDC_CLIENTS
The maximum number of OIDC (i.e.static String
PUBLIC_KEY_KEY
Store 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 boolean
allowQDLCodeBlocks()
BaseClient
clone()
boolean
equals(Object obj)
net.sf.json.JSONObject
getConfig()
String
getExternalVOName()
The name, used by external applications for their VO.URI
getIdHead()
String
getIssuer()
int
getMaxClients()
The maximum number of standard clients this admin client can create before the system refuses to accept any more.PublicKey
getPublicKey()
edu.uiuc.ncsa.security.core.Identifier
getVirtualOrganization()
boolean
hasConfig()
boolean
isAllowCustomIDs()
boolean
isAllowQDL()
boolean
isGenerateIDs()
boolean
isListUsers()
If this client can list information about a given users tokens.boolean
isListUsersInOtherClients()
If this client can list information about a given user's tokens from other clients.boolean
isNotifyOnNewClientCreate()
Deprecated.boolean
isUseTimestampInIDs()
protected void
populateClone(BaseClient client)
void
setAllowCustomIDs(boolean allowCustomIDs)
void
setAllowQDL(boolean allowQDL)
void
setAllowQDLCodeBlocks(boolean allowQDLCodeBlocks)
void
setConfig(net.sf.json.JSONObject config)
void
setExternalVOName(String externalVOName)
void
setGenerateIDs(boolean generateIDs)
void
setIdHead(URI idHead)
void
setIssuer(String issuer)
void
setListUsers(boolean listUsers)
void
setListUsersInOtherClients(boolean listUserInOtherClients)
void
setMaxClients(int maxClients)
void
setNotifyOnNewClientCreate(boolean notifyOnNewClientCreate)
void
setPublicKey(PublicKey publicKey)
void
setUseTimestampInIDs(boolean useTimestampInIDs)
void
setVirtualOrganization(edu.uiuc.ncsa.security.core.Identifier virtualOrganization)
String
toString()
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.storage.BaseClient
getCreationTS, getEmail, getLastModifiedTS, getName, getSecret, isDebugOn, setCreationTS, setDebugOn, setEmail, setLastModifiedTS, setName, setSecret
-
Methods inherited from class edu.uiuc.ncsa.security.storage.data.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)
-
getExternalVOName
public String getExternalVOName()
The name, used by external applications for their VO. These names have nothing to do with OA4MP's virtual organization mechanisms and are typically just displayed to the user at some point.- Returns:
-
setExternalVOName
public void setExternalVOName(String externalVOName)
-
getVirtualOrganization
public edu.uiuc.ncsa.security.core.Identifier getVirtualOrganization()
-
setVirtualOrganization
public void setVirtualOrganization(edu.uiuc.ncsa.security.core.Identifier virtualOrganization)
-
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:
equals
in classBaseClient
-
clone
public BaseClient clone()
- Specified by:
clone
in interfaceedu.uiuc.ncsa.security.core.Identifiable
- Overrides:
clone
in classBaseClient
-
populateClone
protected void populateClone(BaseClient client)
- Overrides:
populateClone
in classBaseClient
-
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:
toString
in classBaseClient
-
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)
-
-