Class EncryptedPasswordSpec
java.lang.Object
com.github.jh3nd3rs0n.jargyle.common.security.EncryptedPasswordSpec
The specification of an
EncryptedPassword.-
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal StringReturns the name of the type ofEncryptedPassword.inthashCode()abstract EncryptedPasswordnewEncryptedPassword(char[] password) Returns a newEncryptedPasswordof the provided password.abstract EncryptedPasswordnewEncryptedPassword(String encryptedPasswordValue) Returns a newEncryptedPasswordwith the parsedEncryptedPasswordValuefrom the providedStringvalue.toString()Returns theStringrepresentation 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 newEncryptedPasswordof the provided password.- Parameters:
password- the provided password- Returns:
- a new
EncryptedPasswordof the provided password
-
newEncryptedPassword
Returns a newEncryptedPasswordwith the parsedEncryptedPasswordValuefrom the providedStringvalue. AnIllegalArgumentExceptionis thrown if the providedStringvalue to be parsed as anEncryptedPasswordValueis invalid.- Parameters:
encryptedPasswordValue- the providedStringvalue to be parsed as anEncryptedPasswordValue- Returns:
- a new
EncryptedPasswordwith the parsedEncryptedPasswordValuefrom the providedStringvalue
-
toString
Returns theStringrepresentation of thisEncryptedPasswordSpec.
-