com.elasticpath.domain.customer.impl
Class CustomerAuthenticationImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.customer.impl.CustomerAuthenticationImpl
All Implemented Interfaces:
CustomerAuthentication, EpDomain, Persistence, ValueObject, java.io.Serializable

public class CustomerAuthenticationImpl
extends AbstractValueObjectImpl
implements CustomerAuthentication

Represents inventory information about a ProductSku.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
CustomerAuthenticationImpl()
           
 
Method Summary
 java.lang.String getClearTextPassword()
          Gets the clear-text password (only available at creation time).
 java.lang.String getConfirmClearTextPassword()
          Gets the clear-text confirm password (only available at creation time).
 java.lang.String getPassword()
          Gets the encrypted password.
 java.lang.String resetPassword()
          Reset the customer's password.
 void setClearTextPassword(java.lang.String clearTextPassword)
          Sets the clear-text password.
 void setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
          Sets the confirm clear-text password.
 void setPassword(java.lang.String password)
          Sets the encrypted password.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

CustomerAuthenticationImpl

public CustomerAuthenticationImpl()
Method Detail

getClearTextPassword

public java.lang.String getClearTextPassword()
Gets the clear-text password (only available at creation time).

Specified by:
getClearTextPassword in interface CustomerAuthentication
Returns:
the clear-text password.

getConfirmClearTextPassword

public java.lang.String getConfirmClearTextPassword()
Gets the clear-text confirm password (only available at creation time).

Specified by:
getConfirmClearTextPassword in interface CustomerAuthentication
Returns:
the clear-text confirm password.

getPassword

public java.lang.String getPassword()
Gets the encrypted password.

Specified by:
getPassword in interface CustomerAuthentication
Returns:
the encrypted password.

resetPassword

public java.lang.String resetPassword()
Reset the customer's password.

Specified by:
resetPassword in interface CustomerAuthentication
Returns:
the reseted password

setClearTextPassword

public void setClearTextPassword(java.lang.String clearTextPassword)
Sets the clear-text password. The password will be encrypted using a secure hash like MD5 or SHA1 and saved as a password.

Specified by:
setClearTextPassword in interface CustomerAuthentication
Parameters:
clearTextPassword - the clear-text password.

setConfirmClearTextPassword

public void setConfirmClearTextPassword(java.lang.String confirmClearTextPassword)
Sets the confirm clear-text password. This is to compare with the ClearTextPassword and make sure they are the same.

Specified by:
setConfirmClearTextPassword in interface CustomerAuthentication
Parameters:
confirmClearTextPassword - the customer confirmClearTextPassword.

setPassword

public void setPassword(java.lang.String password)
Sets the encrypted password.

Specified by:
setPassword in interface CustomerAuthentication
Parameters:
password - the encrypted password.