Class EncryptedPassword
java.lang.Object
com.github.jh3nd3rs0n.jargyle.common.security.EncryptedPassword
An encrypted password.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theEncryptedPasswordSpecof thisEncryptedPassword.Returns theEncryptedPasswordValueof thisEncryptedPassword.char[]Returns the decrypted password of thisEncryptedPassword.Returns the name of the type of thisEncryptedPassword.inthashCode()static EncryptedPasswordnewInstance(char[] password) Returns a newEncryptedPasswordof the provided password.static EncryptedPasswordnewInstance(String typeName, String encryptedPasswordValue) Returns a newEncryptedPasswordwith the provided name of the type ofEncryptedPasswordspecified by aEncryptedPasswordSpecand with the parsedEncryptedPasswordValuefrom the providedStringvalue.static EncryptedPasswordReturns a newEncryptedPasswordfrom the providedString.toString()Retyrns theStringrepresentation of thisEncryptedPassword.
-
Method Details
-
newInstance
Returns a newEncryptedPasswordof the provided password.- Parameters:
password- the provided password- Returns:
- a new
EncryptedPasswordof the provided password
-
newInstanceFrom
Returns a newEncryptedPasswordfrom the providedString. AnIllegalArgumentExceptionis thrown if the providedStringis invalid.- Parameters:
s- the providedString- Returns:
- a new
EncryptedPasswordfrom the providedString
-
newInstance
Returns a newEncryptedPasswordwith the provided name of the type ofEncryptedPasswordspecified by aEncryptedPasswordSpecand with the parsedEncryptedPasswordValuefrom the providedStringvalue. AnIllegalArgumentExceptionis thrown if the provided name of the type ofEncryptedPasswordis not specified by anyEncryptedPasswordSpecor the providedStringvalue to be parsed as anEncryptedPasswordValueis invalid.- Parameters:
typeName- the provided name of the type ofEncryptedPasswordspecified by aEncryptedPasswordSpecencryptedPasswordValue- the providedStringvalue to be parsed as anEncryptedPasswordValue- Returns:
- a new
EncryptedPasswordwith the provided name of the type ofEncryptedPasswordspecified by aEncryptedPasswordSpecand with the parsedEncryptedPasswordValuefrom the providedStringvalue
-
equals
-
getEncryptedPasswordSpec
Returns theEncryptedPasswordSpecof thisEncryptedPassword.- Returns:
- the
EncryptedPasswordSpecof thisEncryptedPassword
-
getEncryptedPasswordValue
Returns theEncryptedPasswordValueof thisEncryptedPassword.- Returns:
- the
EncryptedPasswordValueof thisEncryptedPassword
-
getPassword
public char[] getPassword()Returns the decrypted password of thisEncryptedPassword.- Returns:
- the decrypted password of this
EncryptedPassword
-
getTypeName
Returns the name of the type of thisEncryptedPassword.- Returns:
- the name of the type of this
EncryptedPassword
-
hashCode
public int hashCode() -
toString
Retyrns theStringrepresentation of thisEncryptedPassword. TheStringrepresentation is the name of the type of thisEncryptedPasswordfollowed by a colon (:) followed by theStringrepresentation of theEncryptedPasswordValueof thisEncryptedPassword.
-