Class EncryptedPasswordSpec
java.lang.Object
com.github.jh3nd3rs0n.jargyle.common.security.EncryptedPasswordSpec
The specification of an
EncryptedPassword
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
final String
Returns the name of the type ofEncryptedPassword
.int
hashCode()
abstract EncryptedPassword
newEncryptedPassword
(char[] password) Returns a newEncryptedPassword
of the provided password.abstract EncryptedPassword
newEncryptedPassword
(String encryptedPasswordValue) Returns a newEncryptedPassword
with the parsedEncryptedPasswordValue
from the providedString
value.toString()
Returns theString
representation of thisEncryptedPasswordSpec
.
-
Method Details
-
equals
-
getTypeName
Returns the name of the type ofEncryptedPassword
.- Returns:
- the name of the type of
EncryptedPassword
-
hashCode
public int hashCode() -
newEncryptedPassword
Returns a newEncryptedPassword
of the provided password.- Parameters:
password
- the provided password- Returns:
- a new
EncryptedPassword
of the provided password
-
newEncryptedPassword
Returns a newEncryptedPassword
with the parsedEncryptedPasswordValue
from the providedString
value. AnIllegalArgumentException
is thrown if the providedString
value to be parsed as anEncryptedPasswordValue
is invalid.- Parameters:
encryptedPasswordValue
- the providedString
value to be parsed as anEncryptedPasswordValue
- Returns:
- a new
EncryptedPassword
with the parsedEncryptedPasswordValue
from the providedString
value
-
toString
Returns theString
representation of thisEncryptedPasswordSpec
.
-