public abstract class SecuritySource extends java.lang.Object implements CVComponent
Constructor and Description |
---|
SecuritySource() |
Modifier and Type | Method and Description |
---|---|
abstract AuthenticationResult |
authenticate(java.lang.String login,
java.lang.String password,
boolean needPassword)
Authenticates a user and returns authorizations.
|
AuthenticationResult |
authenticate(java.lang.String login,
java.lang.String password,
boolean needPassword,
java.util.List<exa.bee.KeyValue> params)
Authenticates a user and returns authorizations.
|
java.util.List<java.lang.String> |
getGroups()
Get the groups contained in this security source.
|
SecurityToken |
getGroupToken(java.lang.String group)
Get the security token of a group
|
java.util.List<exa.bee.KeyValue> |
getInfo(java.util.List<exa.bee.KeyValue> params) |
java.util.List<java.lang.String> |
getUsers()
Get the users contained in this security source.
|
SecurityToken |
getUserToken(java.lang.String user)
Get the security token of a user
|
void |
init()
Initialization function for this security source This can be used by
security sources to initialize internal data
|
abstract void |
reset()
Restore the security source to its initial state.
|
public abstract AuthenticationResult authenticate(java.lang.String login, java.lang.String password, boolean needPassword) throws SecurityException
login
- the user loginpassword
- the user passwordneedPassword
- should the user password be checkedSecurityException
public AuthenticationResult authenticate(java.lang.String login, java.lang.String password, boolean needPassword, java.util.List<exa.bee.KeyValue> params) throws SecurityException
login
- the user loginpassword
- the user passwordneedPassword
- should the user password be checkedparams
- custom parametersSecurityException
public abstract void reset() throws SecurityException
SecurityException
public java.util.List<exa.bee.KeyValue> getInfo(java.util.List<exa.bee.KeyValue> params) throws SecurityException
params
- SecurityException
public java.util.List<java.lang.String> getUsers() throws java.lang.Exception
java.lang.Exception
public java.util.List<java.lang.String> getGroups() throws java.lang.Exception
java.lang.Exception
public SecurityToken getUserToken(java.lang.String user)
public SecurityToken getGroupToken(java.lang.String group)
public void init()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.