Package javax.wbem.client
Class PasswordCredential
- java.lang.Object
-
- javax.wbem.client.PasswordCredential
-
public class PasswordCredential extends java.lang.ObjectPasswordCredentialimplements a password based credential. This is used withUserPrincipal.PasswordCredentialincludes the password and optionally the host information for which the password is used to authenticate theUserPrincipal.
-
-
Constructor Summary
Constructors Constructor Description PasswordCredential(char[] pCredential)Creates aPasswordCredentialusing the supplied password.PasswordCredential(java.lang.String pCredential)Creates aPasswordCredentialusing the supplied password.PasswordCredential(java.lang.String pCredential, java.lang.String pHostname)Creates aPasswordCredentialusing the supplied password and host name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostName()Get the host name for which the password is used to authenticate.char[]getUserPassword()Return the user login password in clear text.
-
-
-
Constructor Detail
-
PasswordCredential
public PasswordCredential(char[] pCredential)
Creates aPasswordCredentialusing the supplied password.- Parameters:
pCredential- The user login password in clear text.- Throws:
java.lang.IllegalArgumentException- If the credential is null.
-
PasswordCredential
public PasswordCredential(java.lang.String pCredential)
Creates aPasswordCredentialusing the supplied password.- Parameters:
pCredential- The user login password in clear text.- Throws:
java.lang.IllegalArgumentException- If the credential is null.
-
PasswordCredential
public PasswordCredential(java.lang.String pCredential, java.lang.String pHostname)Creates aPasswordCredentialusing the supplied password and host name.- Parameters:
pCredential- The user login password in clear text.pHostname- The host name information for which the password is used to authenticate.- Throws:
java.lang.IllegalArgumentException- If the credential is null.
-
-