public class PasswordCredential extends Object
| Constructor and Description |
|---|
PasswordCredential(String user,
char[] password,
String realm)
Construct a credential with the specified password and realm name.
|
PasswordCredential(String user,
char[] password,
String realm,
byte[] target_name)
called by SecServerRequestInterceptor The object if created on the server side is readonly
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compare two instances of the credential and return true if they are the same and false otherwise.
|
char[] |
getPassword()
Return the password.
|
String |
getRealm()
Return the realm name.
|
byte[] |
getTargetName()
Return the target_name
|
String |
getUser()
Return the username.
|
int |
hashCode()
Return the hashCode computed from the password and realm name.
|
void |
setRealm(String realm) |
String |
toString()
The string representation of the credential.
|
public PasswordCredential(String user, char[] password, String realm)
the - password.the - realm name. The only value supported for now is "default".public String getRealm()
public String getUser()
public void setRealm(String realm)
public char[] getPassword()
public byte[] getTargetName()
public boolean equals(Object o)
public int hashCode()
Copyright © 2019. All rights reserved.