|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.wbem.client.RoleCredential
public class RoleCredential
RoleCredential
implements a password based credential for a
role. RoleCredential
includes the credential (e.g. password) and
optionally the host information for which the password is used to
authenticate the RolePrincipal
. RoleCredential
should be used in conjunction with the RolePrincipal
instance.
This should only be used when a client is assuming a role on a WBEM Server
that requires a password.
Constructor Summary | |
---|---|
RoleCredential(char[] credential)
Creates a role credential using the supplied credential |
|
RoleCredential(java.lang.String credential)
Creates a role credential using the supplied credential |
|
RoleCredential(java.lang.String credential,
java.lang.String hostname)
Creates a role credential using the supplied credential and hostname |
Method Summary | |
---|---|
char[] |
getCredential()
Return the role credential in clear text. |
java.lang.String |
getHostName()
Get the host name for which the password is used to authenticate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleCredential(char[] credential) throws java.lang.IllegalArgumentException
credential
- - The role credential in clear text.
java.lang.IllegalArgumentException
- - If the credential is null
.public RoleCredential(java.lang.String credential) throws java.lang.IllegalArgumentException
credential
- - The role credential in clear text.
java.lang.IllegalArgumentException
- - If the credential is null
.public RoleCredential(java.lang.String credential, java.lang.String hostname) throws java.lang.IllegalArgumentException
credential
- - The role credential in clear text.hostname
- - The hostname information for which the password is used to
authenticate
java.lang.IllegalArgumentException
- - If the credential is null
.Method Detail |
---|
public char[] getCredential()
public java.lang.String getHostName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |