public class

PasswordCredential

extends Object
implements Serializable
java.lang.Object
   ↳ com.atlassian.crowd.embedded.api.PasswordCredential

Class Overview

Password based authentication information.

Summary

Fields
public static final PasswordCredential NONE
protected String credential
Public Constructors
PasswordCredential()
This constructor is 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)
Public Methods
static PasswordCredential encrypted(String encryptedCredential)
boolean equals(Object o)
String getCredential()
Gets the password credential.
int hashCode()
boolean isEncryptedCredential()
void setCredential(String credential)
Sets the password credential.
void setEncryptedCredential(boolean encryptedCredential)
String toString()
static PasswordCredential unencrypted(String unencryptedCredential)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final PasswordCredential NONE

protected String credential

Public Constructors

public PasswordCredential ()

This constructor is 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)

Default constructor used by hibernate

public PasswordCredential (PasswordCredential passwordCredential)

public PasswordCredential (String unencryptedCredential)

Constructor that takes an unencrypted credential. ie PasswordCredential#encryptedCredential is false.

Parameters
unencryptedCredential the unencrypted password credential

public PasswordCredential (String credential, boolean encryptedCredential)

Public Methods

public static PasswordCredential encrypted (String encryptedCredential)

public boolean equals (Object o)

public String getCredential ()

Gets the password credential.

Returns
  • The credential.

public int hashCode ()

public boolean isEncryptedCredential ()

public void setCredential (String credential)

Sets the password credential.

Parameters
credential The credential.

public void setEncryptedCredential (boolean encryptedCredential)

public String toString ()

public static PasswordCredential unencrypted (String unencryptedCredential)