com.atlassian.crowd.integration.authentication
Class PasswordCredential

java.lang.Object
  extended by com.atlassian.crowd.integration.authentication.PasswordCredential

public class PasswordCredential
extends java.lang.Object

Password based authentication information.

Version:
1.0
Author:
Justen Stepka

Field Summary
protected  java.lang.String credential
           
 
Constructor Summary
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(java.lang.String unencryptedCredential)
          Constructor that takes an unencrypted credential.
PasswordCredential(java.lang.String credential, boolean encryptedCredential)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCredential()
          Gets the password credential.
 int hashCode()
           
 boolean isEncryptedCredential()
           
 void setCredential(java.lang.String credential)
          Sets the password credential.
 void setEncryptedCredential(boolean encryptedCredential)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

credential

protected java.lang.String credential
Constructor Detail

PasswordCredential

public 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)

Default constructor used by hibernate


PasswordCredential

public PasswordCredential(PasswordCredential passwordCredential)

PasswordCredential

public PasswordCredential(java.lang.String unencryptedCredential)
Constructor that takes an unencrypted credential. ie encryptedCredential is false.

Parameters:
unencryptedCredential - the unencrypted password credential

PasswordCredential

public PasswordCredential(java.lang.String credential,
                          boolean encryptedCredential)
Method Detail

getCredential

public java.lang.String getCredential()
Gets the password credential.

Returns:
The credential.

setCredential

public void setCredential(java.lang.String credential)
Sets the password credential.

Parameters:
credential - The credential.

isEncryptedCredential

public boolean isEncryptedCredential()

setEncryptedCredential

public void setEncryptedCredential(boolean encryptedCredential)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.