1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-16 13:35:22 +02:00

[cleanup] Add API "since" Javadoc tags

This commit is contained in:
Martin Oberhuber 2008-04-02 16:12:51 +00:00
parent e0f056e92f
commit 847d8a4acd

View file

@ -61,6 +61,7 @@ public class PasswordPersistenceManager {
// Add return codes // Add return codes
public static final int RC_OK = 0; public static final int RC_OK = 0;
public static final int RC_ALREADY_EXISTS = 1; public static final int RC_ALREADY_EXISTS = 1;
/** @since org.eclipse.rse.core 3.0 */
public static final int RC_DENIED = 2; public static final int RC_DENIED = 2;
public static final int RC_ERROR = -1; public static final int RC_ERROR = -1;
@ -187,12 +188,14 @@ public class PasswordPersistenceManager {
remove(info.getSystemType(), info.getHostname(), info.getUserId()); remove(info.getSystemType(), info.getHostname(), info.getUserId());
} }
/** /**
* Removes all passwords for a host name for a given system type. * Removes all passwords for a host name for a given system type. Use the
* Use the default system type explicitly to remove those entries. * default system type explicitly to remove those entries.
*
* @param systemType The system type of the host * @param systemType The system type of the host
* @param hostName The IP address of the host in canonical format * @param hostName The IP address of the host in canonical format
* @return the number of passwords removed from the keyring * @return the number of passwords removed from the keyring
* @since org.eclipse.rse.core 3.0
*/ */
public int remove(IRSESystemType systemType, String hostName) { public int remove(IRSESystemType systemType, String hostName) {
Map passwords = getPasswordMap(systemType); Map passwords = getPasswordMap(systemType);
@ -213,7 +216,7 @@ public class PasswordPersistenceManager {
} }
return numberRemoved; return numberRemoved;
} }
/** /**
* Removes all entries from the keyring that match the hostname, userid, and system type. * Removes all entries from the keyring that match the hostname, userid, and system type.
* Use the default system type explicitly to remove those entries. * Use the default system type explicitly to remove those entries.
@ -323,7 +326,7 @@ public class PasswordPersistenceManager {
} }
return result; return result;
} }
/* /*
* Retrieve the password map from the keyring for the specified system type * Retrieve the password map from the keyring for the specified system type
*/ */