|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.CredentialsProvider
public final class CredentialsProvider
Provides available credential variables for a workflow. Credentials are
globally defined on workflows, a CredentialsProvider provides
read-only access to these credentials.
Objects of this class are available in the NodeModel by the
corresponding get method. Concrete implementations of a node will use a
dialog component to list all available credentials identifiers
(available in listNames()), let the user choose one of these
identifiers, and fetch the concrete credentials paramenter using
get(String).
| Constructor Summary | |
|---|---|
CredentialsProvider(NodeContainer client,
CredentialsStore store)
Creates new provider for a given node container and a store to read from. |
|
| Method Summary | |
|---|---|
(package private) void |
clearClientHistory()
Remove history of get invocations associated with this client. |
boolean |
equals(Object obj)
|
ICredentials |
get(String name)
Read a credentials variable from the store. |
(package private) NodeContainer |
getClient()
|
(package private) CredentialsStore |
getStore()
|
int |
hashCode()
|
Collection<String> |
listNames()
List all credentials variables available in the workflow. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
CredentialsProvider(NodeContainer client,
CredentialsStore store)
client - The client that fetches password values (used to track,
e.g. usage history)store - The store to get the credentials from.| Method Detail |
|---|
public ICredentials get(String name)
name - The identifier of the credentials parameter of interest.
IllegalArgumentException - If the name is invalid
(no such credentials)public Collection<String> listNames()
get(String) method.
NodeContainer getClient()
CredentialsStore getStore()
void clearClientHistory()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||