|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.wbem.client.PasswordCredential
public class PasswordCredential
PasswordCredential
implements a password based credential. This
is used with UserPrincipal
. PasswordCredential
includes the password and optionally the host information for which the
password is used to authenticate the UserPrincipal
.
Constructor Summary | |
---|---|
PasswordCredential(char[] pCredential)
Creates a PasswordCredential using the supplied password. |
|
PasswordCredential(String pCredential)
Creates a PasswordCredential using the supplied password. |
|
PasswordCredential(String pCredential,
String pHostname)
Creates a PasswordCredential using the supplied password and
host name. |
Method Summary | |
---|---|
String |
getHostName()
Get the host name for which the password is used to authenticate. |
char[] |
getUserPassword()
Return the user login password in clear text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordCredential(char[] pCredential)
PasswordCredential
using the supplied password.
pCredential
- The user login password in clear text.
IllegalArgumentException
- If the credential is null.public PasswordCredential(String pCredential)
PasswordCredential
using the supplied password.
pCredential
- The user login password in clear text.
IllegalArgumentException
- If the credential is null.public PasswordCredential(String pCredential, String pHostname)
PasswordCredential
using the supplied password and
host name.
pCredential
- The user login password in clear text.pHostname
- The host name information for which the password is used to
authenticate.
IllegalArgumentException
- If the credential is null.Method Detail |
---|
public String getHostName()
public char[] getUserPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |