|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EncryptionExit
Encryption exit interface for encrypting and decrypting passwords stored in the default vault of the portal.
The credential vault supports an encryption exit for the default vault adapter. To use custom encryption and decryption mechanisms, implement this interface. To register a custom implementation, perform the following steps:
PortalServer_root/shared/app/
).defaultvault
.
encryptionExit
property to specify the fully qualified class name of your implementation, for example:
encryptionExit=com.yourcompany.credentialvault.YourEncryptionExit
PortalServer_root/shared/app/
.
This interface is designed to be implemented by clients. |
Method Summary | |
---|---|
char[] |
decryptPassword(char[] password)
Decrypts the password |
void |
destroy()
This method is called during portal shut down |
char[] |
encryptPassword(char[] password)
Encrypts the password. |
void |
init()
This method is called during portal start up |
Method Detail |
---|
void init() throws CredentialVaultException
CredentialVaultException
- if the initialization fails.void destroy()
char[] encryptPassword(char[] password) throws CredentialVaultException
password
- Unencrypted password
null
CredentialVaultException
- if the encryption of the password fails.char[] decryptPassword(char[] password) throws CredentialVaultException
password
- Encrypted password
null
CredentialVaultException
- if the decryption of the password fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |