|
RSE Release 3.4 |
|||||||||
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 retrieving of user IDs / passwords to Equinox secure storage for registered system types.
Field Summary | |
---|---|
static IRSESystemType |
DEFAULT_SYSTEM_TYPE
|
static String |
DEFAULT_USER_NAME
|
static int |
RC_ALREADY_EXISTS
|
static int |
RC_DENIED
|
static int |
RC_ERROR
|
static int |
RC_OK
|
Method Summary | |
---|---|
int |
add(SystemSignonInformation info,
boolean overwrite)
Add a password to the password database. |
int |
add(SystemSignonInformation info,
boolean overwrite,
boolean updateDefault)
Add a password to the password database. |
SystemSignonInformation |
find(IRSESystemType systemType,
String hostName,
String userId)
Find the password for the specified system type, host name and user id. |
SystemSignonInformation |
find(IRSESystemType systemType,
String hostName,
String userId,
boolean checkDefault)
Find the password for the specified system type, host name and user id. |
static PasswordPersistenceManager |
getInstance()
Retrieve the singleton instance of the PasswordPersistenceManger |
IRSESystemType[] |
getRegisteredSystemTypes()
Retrieve the list of registered system types. |
List |
getSavedUserIDs()
Retrieves a list of SystemSignonInformation instances that have been saved. |
boolean |
isUserIDCaseSensitive(IRSESystemType systemType)
Helper method for determining if system type uses case sensitive user IDs. |
boolean |
passwordExists(IRSESystemType systemType,
String hostName,
String userId)
Determines if password entry exists for a given system type, host name, and user id. |
boolean |
passwordExists(IRSESystemType systemType,
String hostName,
String userId,
boolean checkDefault)
Determine if a password entry exists for the specified system type, host name, and user id. |
int |
remove(IRSESystemType systemType,
String hostName)
Removes all passwords for a host name for a given system type. |
void |
remove(IRSESystemType systemType,
String hostName,
String userId)
Removes all entries that match the host name, user id, and system type. |
void |
remove(SystemSignonInformation info)
Remove the password entry that matches the system type, host name and user ID from the SystemSignonInfo parameter. |
void |
reset(IRSESystemType systemType)
Resets a given system type. |
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_DENIED
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 reset(IRSESystemType systemType)
systemType
- the system type to resetpublic 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 SystemSignonInformation to storeoverwrite
- If true then overwrite the existing entry for this system type, host name, and user id.updateDefault
- if true then set the entry for the default system type, host name, and user ID, according to the overwrite setting.
public boolean passwordExists(IRSESystemType systemType, String hostName, String userId)
systemType
- the IRSESystemType instance to find a password for.hostName
- the name of the host we are examining for a password.userId
- the user id to find passwords for.
public boolean passwordExists(IRSESystemType systemType, String hostName, String userId, boolean checkDefault)
systemType
- the IRSESystemType instance to find a password for.hostName
- the name of the host we are examining for a password.userId
- the user id to find passwords for.checkDefault
- Whether or not to check for a default system type if the specified system type is not found.
public SystemSignonInformation find(IRSESystemType systemType, String hostName, String userId)
systemType
- the IRSESystemType instance to find a password for.hostName
- the name of the host we are examining for a password.userId
- the user id to find passwords for.
SystemSignonInformation
for the specified criteria.public SystemSignonInformation find(IRSESystemType systemType, String hostName, String userId, boolean checkDefault)
systemType
- the IRSESystemType instance to find a password for.hostName
- the name of the host we are examining for a password.userId
- the user id to find passwords for.checkDefault
- true if the default system type should be checked if the specified system type is not found
SystemSignonInformation
for the specified criteria.public void remove(SystemSignonInformation info)
public int remove(IRSESystemType systemType, String hostName)
systemType
- The system type of the hosthostName
- The IP address or name of the host in canonical format
public void remove(IRSESystemType systemType, String hostName, String userId)
systemType
- the systemTypehostName
- the connection nameuserId
- the user idpublic IRSESystemType[] getRegisteredSystemTypes()
IRSESystemType
.public List getSavedUserIDs()
public boolean isUserIDCaseSensitive(IRSESystemType systemType)
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |