|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.core.PasswordPersistenceManager
public class PasswordPersistenceManager
PasswordPersistenceManager manages the saving and retreiving of user ID / passwords to the Eclipse keyring for registered system types.
| Field Summary | |
|---|---|
static IRSESystemType |
DEFAULT_SYSTEM_TYPE
|
static String |
DEFAULT_USER_NAME
|
static int |
RC_ALREADY_EXISTS
|
static int |
RC_ERROR
|
static int |
RC_OK
|
| Method Summary | |
|---|---|
int |
add(SystemSignonInformation info,
boolean overwrite)
Add a new persisted password to the password database. |
int |
add(SystemSignonInformation info,
boolean overwrite,
boolean updateDefault)
Add a new persisted password to the password database. |
SystemSignonInformation |
find(IRSESystemType systemtype,
String hostname,
String userid)
Find the persisted password for the specified systemtype, hostname and userid. |
SystemSignonInformation |
find(IRSESystemType systemtype,
String hname,
String userid,
boolean checkDefault)
Find the persisted password for the specified systemtype, hostname and userid. |
static PasswordPersistenceManager |
getInstance()
Retrieve the singleton isntance of the PasswordPersistenceManger |
IRSESystemType[] |
getRegisteredSystemTypes()
Retrieve the list of registered system types |
List |
getSavedUserIDs()
Retrieve a list of the stored user IDs. |
boolean |
isUserIDCaseSensitive(IRSESystemType systemType)
Helper method for determining if system type uses case sensitive user IDs |
boolean |
passwordExists(IRSESystemType systemtype,
String hostname,
String userid)
Check if a password entry exists for the specified system type, hostname and userid. |
boolean |
passwordExists(IRSESystemType systemtype,
String hname,
String userid,
boolean checkDefault)
Check if a password entry exists for the specified system type, hostname and userid. |
void |
remove(IRSESystemType systemtype,
String hname,
String userid)
Remove the entry from the keyring that matches the hostname, userid and system type parameters. |
void |
remove(SystemSignonInformation info)
Remove the entry from the keyring that matches the systemtype, hostname and user ID from the SystemSignonInfo parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RC_OK
public static final int RC_ALREADY_EXISTS
public static final int RC_ERROR
public static final IRSESystemType DEFAULT_SYSTEM_TYPE
public static final String DEFAULT_USER_NAME
| Method Detail |
|---|
public static final PasswordPersistenceManager getInstance()
public void remove(SystemSignonInformation info)
public void remove(IRSESystemType systemtype,
String hname,
String userid)
systemtype - the systemTypehname - the connection nameuserid - the user id
public boolean passwordExists(IRSESystemType systemtype,
String hostname,
String userid)
public boolean passwordExists(IRSESystemType systemtype,
String hname,
String userid,
boolean checkDefault)
systemtype - The system type to check for.hname - The hostname to check for.userid - The user ID to check for.checkDefault - Whether or not to check for a default system type if the specified system type is not found.
public int add(SystemSignonInformation info,
boolean overwrite)
info - The signon information to storeoverwrite - Whether to overwrite any existing entry
public int add(SystemSignonInformation info,
boolean overwrite,
boolean updateDefault)
info - The signon information to storeoverwrite - Whether to overwrite any existing entryupdateDefault - Whether or not to update the default entry for the specified hostname / user ID if one exists.
public SystemSignonInformation find(IRSESystemType systemtype,
String hostname,
String userid)
public SystemSignonInformation find(IRSESystemType systemtype,
String hname,
String userid,
boolean checkDefault)
systemtype - The system type to check for.hname - The hostname to check for.userid - The user ID to check for.checkDefault - Whether or not to check for a default system type if the specified system type is not found.public boolean isUserIDCaseSensitive(IRSESystemType systemType)
public IRSESystemType[] getRegisteredSystemTypes()
public List getSavedUserIDs()
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||