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
Modifier and TypeFieldDescriptionprotected String
static final PasswordCredential
static final String
String that substitutes the real password in contexts where it cannot be displayed. -
Constructor Summary
ConstructorDescriptionDeprecated.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 PasswordCredential
boolean
Gets the password credential.int
hashCode()
boolean
void
setCredential
(String credential) Deprecated.create a new instance rather than mutating.void
setEncryptedCredential
(boolean encryptedCredential) Deprecated.create a new instance rather than mutating.toString()
static PasswordCredential
unencrypted
(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. ieencryptedCredential
is 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
-