Constructor and Description |
---|
APIKeysService(javax.sql.DataSource pool,
SecurityContext context) |
Modifier and Type | Method and Description |
---|---|
APIKey |
create(java.lang.String displayName)
Creates an
APIKey for the given core session. |
void |
delete(java.lang.String sid)
Deletes an
APIKey |
APIKey |
get(java.lang.String sid) |
java.util.List<APIKey> |
list() |
public APIKeysService(javax.sql.DataSource pool, SecurityContext context)
public APIKey create(java.lang.String displayName) throws ServerFault
IAPIKeys
APIKey
for the given core session. This will be usable as
a valid password to impersonate the user.create
in interface IAPIKeys
displayName
- the name of the APIKey
APIKey
to impersonate the userServerFault
public void delete(java.lang.String sid) throws ServerFault
IAPIKeys
APIKey
delete
in interface IAPIKeys
sid
- the APIKey.sid
ServerFault
public java.util.List<APIKey> list() throws ServerFault
list
in interface IAPIKeys
APIKey
ServerFault
public APIKey get(java.lang.String sid) throws ServerFault
get
in interface IAPIKeys
ServerFault
Copyright © 2021. All Rights Reserved.