public class PasswordCredential extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
credential |
static PasswordCredential |
NONE |
static String |
SANITISED_PASSWORD
String that substitutes the real password in contexts where it cannot be displayed.
|
Constructor and Description |
---|
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 set
setEncryptedCredential(boolean) |
PasswordCredential(PasswordCredential passwordCredential) |
PasswordCredential(String unencryptedCredential)
Constructor that takes an unencrypted credential.
|
PasswordCredential(String credential,
boolean encryptedCredential) |
Modifier and Type | Method and Description |
---|---|
static PasswordCredential |
encrypted(String encryptedCredential) |
boolean |
equals(Object o) |
String |
getCredential()
Gets the password credential.
|
int |
hashCode() |
boolean |
isEncryptedCredential() |
void |
setCredential(String credential)
Deprecated.
create a new instance rather than mutating.
|
void |
setEncryptedCredential(boolean encryptedCredential)
Deprecated.
create a new instance rather than mutating.
|
String |
toString() |
static PasswordCredential |
unencrypted(String unencryptedCredential) |
public static final PasswordCredential NONE
public static final String SANITISED_PASSWORD
protected String credential
@Deprecated public PasswordCredential()
setEncryptedCredential(boolean)
public PasswordCredential(PasswordCredential passwordCredential)
public PasswordCredential(String unencryptedCredential)
encryptedCredential
is false.unencryptedCredential
- the unencrypted password credentialpublic PasswordCredential(String credential, boolean encryptedCredential)
public static PasswordCredential encrypted(String encryptedCredential)
public static PasswordCredential unencrypted(String unencryptedCredential)
public String getCredential()
public void setCredential(String credential)
credential
- The credential.public boolean isEncryptedCredential()
@Deprecated public void setEncryptedCredential(boolean encryptedCredential)
Copyright © 2020 Atlassian. All rights reserved.