|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.knime.core.node.workflow.Credentials
public final class Credentials
The credentials implementation. Fields are mutable (in comparison to the interface).
| Constructor Summary | |
|---|---|
Credentials(String name)
Create new credentials for a given name. |
|
Credentials(String name,
String login,
String password)
Create new credentials for a given name, initializing defaults. |
|
| Method Summary | |
|---|---|
(package private) void |
addClient(NodeContainer nc)
Add a client to the set of interested clients. |
Credentials |
clone()
|
boolean |
equals(Object obj)
|
String |
getLogin()
The login name as passed to the DB connection or other password-secured systems. |
String |
getName()
The (workflow-global) unique identifier of this credentials object. |
String |
getPassword()
The password as passed to the DB connection or other password-secured systems. |
int |
hashCode()
|
(package private) static Credentials |
load(NodeSettingsRO settings)
Load credentials from argument. |
(package private) void |
removeClient(NodeContainer nc)
Remove the client from the history list (if registered). |
(package private) void |
save(NodeSettingsWO settings)
Saves name and login info to argument. |
(package private) void |
setLogin(String login)
|
(package private) void |
setPassword(String password)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Credentials(String name)
name - Name of credentials (identifier)
public Credentials(String name,
String login,
String password)
name - Name of credentials (identifier)login - The login name.password - the password.| Method Detail |
|---|
public String getLogin()
getLogin in interface ICredentialsvoid setLogin(String login)
login - the login to setpublic String getPassword()
getPassword in interface ICredentialsvoid setPassword(String password)
password - the password to setpublic String getName()
getName in interface ICredentialspublic boolean equals(Object obj)
equals in class ObjectCredentials object's
name and login matches, otherwise false
public int hashCode()
hashCode in class Objectpublic Credentials clone()
clone in class Objectvoid removeClient(NodeContainer nc)
nc - The client to remove.void addClient(NodeContainer nc)
nc - The client.void save(NodeSettingsWO settings)
settings - To save to.
static Credentials load(NodeSettingsRO settings)
throws InvalidSettingsException
settings - To load from.
InvalidSettingsException - If that fails for any reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||