public class PasswordCredential
extends java.lang.Object
Constructor and Description |
---|
PasswordCredential()
Constructs an object of a PasswordCredential.
|
PasswordCredential(char[] pPassword)
Constructs an object of a PasswordCredential with the specified password.
|
PasswordCredential(java.lang.String pPassword)
Deprecated.
for security reason this class has been deprecated.
PasswordCredential(char[] password) constructor must be used instead of this
constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearUserPassword()
Clears the user password from memory and
resets the password to null.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getHostName()
Gets the host name.
|
char[] |
getUserPassword()
Gets a copy of the user password.
|
int |
hashCode() |
void |
setHostName(java.lang.String pHostname)
Specifies the host name.
|
void |
setUserPassword(char[] pPassword)
Sets a new password for this credential object.
|
public PasswordCredential()
public PasswordCredential(java.lang.String pPassword)
pPassword
- public PasswordCredential(char[] pPassword)
pPassword
- public void clearUserPassword()
public java.lang.String getHostName()
public char[] getUserPassword()
public void setHostName(java.lang.String pHostname)
pHostname
- New hostname to be set.public void setUserPassword(char[] pPassword)
pPassword
- New password to be set.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.