|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.CredentialsStore
public final class CredentialsStore
Container for credentials defined on a workflow. Elements in this store are used by individual node implementations to get password information.
This store is modified by the workbench GUI (not by nodes). Any modification should be synchronized (all methods are synchronized) but batch modification should be done when synchronizing on this object.
| Constructor Summary | |
|---|---|
CredentialsStore(WorkflowManager manager)
Create new credential store for a workflow. |
|
CredentialsStore(WorkflowManager manager,
List<Credentials> creds)
Create new credential store for a workflow. |
|
| Method Summary | |
|---|---|
void |
add(Credentials cred)
Add a new credentials object to this store. |
void |
clearClient(NodeContainer nc)
Clear any access history of the given client on any of the credentials. |
boolean |
contains(String name)
Checks, if a CredentialsStore is contained in this store under
the given name. |
Credentials |
get(String name)
Read out credentials under a given name. |
Credentials |
get(String name,
NodeContainer client)
Read out credentials under a given name. |
Iterable<Credentials> |
getCredentials()
Get iterable for credentials. |
Collection<String> |
listNames()
Get a list with identifiers of the available credential variables.# Each element in the returned list is a valid argument for the get(String, NodeContainer) and remove(String) method. |
void |
remove(String name)
Remove a credentials variable from this store. |
String |
toString()
|
(package private) boolean |
update(Credentials... credentialsList)
Update the Credentials with the names from the given
crendentials list. |
void |
update(Observable o,
Object arg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
CredentialsStore(WorkflowManager manager)
manager - The workflow keeping this store to persist credentials.
CredentialsStore(WorkflowManager manager,
List<Credentials> creds)
manager - The workflow keeping this store to persist credentials.creds - The list of initial credentials.| Method Detail |
|---|
public Credentials get(String name,
NodeContainer client)
Credentials.getName()).
name - The name to lookupclient - The client accessing the credential (used to keep lookup
history and (possibly in future versions) to implement access
restrictions
IllegalArgumentException - If the identifier is unknownpublic Credentials get(String name)
Credentials.getName()).
name - The name to lookup
IllegalArgumentException - If the identifier is unknownpublic boolean contains(String name)
CredentialsStore is contained in this store under
the given name.
name - credential's name to check
boolean update(Credentials... credentialsList)
Credentials with the names from the given
crendentials list. Only the login and password are updated.
credentialsList - the list of credentials to change
IllegalArgumentException - If the identifier is unknownpublic Iterable<Credentials> getCredentials()
public void clearClient(NodeContainer nc)
nc - The client to clear.public void add(Credentials cred)
cred - The new credentials to add.
NullPointerException - If the argument is null
IllegalArgumentException - If the the argument's name is already
in usepublic void remove(String name)
name - Name of variable to remove.
NullPointerException - If the argument is null
IllegalArgumentException - If the variable is unknown.public Collection<String> listNames()
get(String, NodeContainer) and remove(String) method.
public String toString()
toString in class Object
public void update(Observable o,
Object arg)
update in interface Observer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||