Package com.atlassian.crowd.embedded.api
Class PasswordCredential
java.lang.Object
com.atlassian.crowd.embedded.api.PasswordCredential
- All Implemented Interfaces:
Serializable
Password based authentication information.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final PasswordCredentialstatic final StringString that substitutes the real password in contexts where it cannot be displayed. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.since 1.3.2, please use any other PasswordCredential constructor, this constructor should only be used by hibernate.PasswordCredential(PasswordCredential passwordCredential) PasswordCredential(String unencryptedCredential) Constructor that takes an unencrypted credential.PasswordCredential(String credential, boolean encryptedCredential) -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordCredentialbooleanGets the password credential.inthashCode()booleanvoidsetCredential(String credential) Deprecated.create a new instance rather than mutating.voidsetEncryptedCredential(boolean encryptedCredential) Deprecated.create a new instance rather than mutating.toString()static PasswordCredentialunencrypted(String unencryptedCredential)
-
Field Details
-
NONE
-
SANITISED_PASSWORD
String that substitutes the real password in contexts where it cannot be displayed.- See Also:
-
credential
-
-
Constructor Details
-
PasswordCredential
Deprecated.since 1.3.2, please use any other PasswordCredential constructor, this constructor should only be used by hibernate. If this constructor is used, please be aware that you must setsetEncryptedCredential(boolean)Default constructor used by hibernate -
PasswordCredential
-
PasswordCredential
Constructor that takes an unencrypted credential. ieencryptedCredentialis false.- Parameters:
unencryptedCredential- the unencrypted password credential
-
PasswordCredential
-
-
Method Details
-
encrypted
-
unencrypted
-
getCredential
Gets the password credential.- Returns:
- The credential.
-
setCredential
Deprecated.create a new instance rather than mutating.Sets the password credential.- Parameters:
credential- The credential.
-
isEncryptedCredential
public boolean isEncryptedCredential() -
setEncryptedCredential
Deprecated.create a new instance rather than mutating. -
equals
-
hashCode
public int hashCode() -
toString
-