public abstract class SecurityDTO extends Object implements Serializable
Constructor and Description |
---|
SecurityDTO() |
Modifier and Type | Method and Description |
---|---|
boolean |
decrypt(String userName,
byte[] password,
MessageEncryption msgEncryption) |
boolean |
decrypt(String userName,
String password) |
void |
encrypt(String userName,
byte[] password,
MessageEncryption msgEncryption)
Encrypt this request with specified userName and password.
|
void |
encrypt(String userName,
String password)
Encrypt this request with specified userName and password.
|
boolean |
equals(Object obj) |
String |
getCreated()
Gets the created.
|
String |
getNonce()
Gets the nonce.
|
String |
getPassword()
Gets the password.
|
String |
getUserName()
Gets the user name.
|
int |
hashCode() |
void |
setCreated(String created)
Sets the created.
|
void |
setNonce(String nonce)
Sets the nonce.
|
void |
setPassword(String password)
The encrypted password will set after encrypt method is called.
|
void |
setUserName(String userName)
Sets the user name.
|
String |
toString() |
public String getUserName()
public void setUserName(String userName)
userName
- the new user namepublic String getPassword()
public void setPassword(String password)
password
- the new passwordpublic String getNonce()
public void setNonce(String nonce)
nonce
- the new noncepublic String getCreated()
public void setCreated(String created)
created
- the new createdpublic void encrypt(String userName, String password)
userName
- password
- public void encrypt(String userName, byte[] password, MessageEncryption msgEncryption)
userName
- password
- msgEncryption
- public boolean decrypt(String userName, String password)
userName
- password
- public boolean decrypt(String userName, byte[] password, MessageEncryption msgEncryption)
userName
- password
- msgEncryption
- public boolean equals(Object obj)
Copyright © 2021. All rights reserved.