|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jaspersoft.jasperserver.api.metadata.common.service.impl.PasswordCipherer
public class PasswordCipherer
This class is used to encrypt/decrypt passwords both in acegi domain and also throughout the applicaton.
| Constructor Summary | |
|---|---|
PasswordCipherer()
Constuctor to be called only from Spring framework |
|
| Method Summary | |
|---|---|
java.lang.String |
decodePassword(java.lang.String encPass)
Decodes the specified raw password with an implementation specific algorithm if allowEncoding is TRUE. |
java.lang.String |
encodePassword(java.lang.String rawPass)
Encodes the specified raw password with an implementation specific algorithm if allowEncoding is TRUE. |
java.lang.String |
encodePassword(java.lang.String rawPass,
java.lang.Object salt)
PasswordEncoder METHODS |
java.lang.String |
getCipherTransformation()
|
static PasswordCipherer |
getInstance()
singleton accessor |
java.lang.String |
getSecretKey()
|
java.lang.String |
getSecretKeyAlgorithm()
|
boolean |
isAllowEncoding()
|
boolean |
isKeyInPlainText()
|
boolean |
isPasswordValid(java.lang.String encPass,
java.lang.String rawPass,
java.lang.Object salt)
|
void |
setAllowEncoding(boolean allowEncoding)
|
void |
setCipherTransformation(java.lang.String cipherTransformation)
|
void |
setKeyInPlainText(boolean keyInPlainText)
|
void |
setSecretKey(java.lang.String secretKey)
|
void |
setSecretKeyAlgorithm(java.lang.String secretKeyAlgorithm)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordCipherer()
| Method Detail |
|---|
public static PasswordCipherer getInstance()
public java.lang.String decodePassword(java.lang.String encPass)
Decodes the specified raw password with an implementation specific algorithm if allowEncoding is TRUE.
Otherwise it returns encPass.
encPass -
org.springframework.dao.DataAccessException
public java.lang.String encodePassword(java.lang.String rawPass)
throws org.springframework.dao.DataAccessException
Encodes the specified raw password with an implementation specific algorithm if allowEncoding is TRUE.
Otherwise it returns rawPass.
rawPass -
org.springframework.dao.DataAccessException
public java.lang.String encodePassword(java.lang.String rawPass,
java.lang.Object salt)
throws org.springframework.dao.DataAccessException
encodePassword in interface org.acegisecurity.providers.encoding.PasswordEncoderorg.springframework.dao.DataAccessException
public boolean isPasswordValid(java.lang.String encPass,
java.lang.String rawPass,
java.lang.Object salt)
throws org.springframework.dao.DataAccessException
isPasswordValid in interface org.acegisecurity.providers.encoding.PasswordEncoderorg.springframework.dao.DataAccessExceptionpublic boolean isAllowEncoding()
public void setAllowEncoding(boolean allowEncoding)
allowEncoding - The allowEncoding to set.public java.lang.String getCipherTransformation()
public void setCipherTransformation(java.lang.String cipherTransformation)
cipherTransformation - The cipherTransformation to set.public boolean isKeyInPlainText()
public void setKeyInPlainText(boolean keyInPlainText)
keyInPlainText - The keyInPlainText to set.public java.lang.String getSecretKey()
public void setSecretKey(java.lang.String secretKey)
secretKey - The secretKey to set.public java.lang.String getSecretKeyAlgorithm()
public void setSecretKeyAlgorithm(java.lang.String secretKeyAlgorithm)
secretKeyAlgorithm - The secretKeyAlgorithm to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||