com.elasticpath.domain.customer
Interface CustomerAuthentication

All Superinterfaces:
EpDomain, Persistence, java.io.Serializable, ValueObject
All Known Implementing Classes:
CustomerAuthenticationImpl

public interface CustomerAuthentication
extends ValueObject

Represents the customer Authentication.


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 interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getClearTextPassword

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

Returns:
the clear-text password.

getConfirmClearTextPassword

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

Returns:
the clear-text confirm password.

getPassword

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

Returns:
the encrypted password.

resetPassword

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

Returns:
the reseted password

setClearTextPassword

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 password.

Parameters:
clearTextPassword - the clear-text password.

setConfirmClearTextPassword

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.

Parameters:
confirmClearTextPassword - the user confirmClearTextPassword.

setPassword

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

Parameters:
password - the encrypted password.