org.apache.wss4j.common.crypto
Interface PasswordEncryptor

All Known Implementing Classes:
JasyptPasswordEncryptor

public interface PasswordEncryptor

This interface describes a way to encrypt and decrypt passwords. It allows a way to store encrypted keystore passwords in Merlin Crypto properties file, that can be decrypted before loading the keystore, etc.


Method Summary
 String decrypt(String encryptedPassword)
          Decrypt the given encrypted password
 String encrypt(String password)
          Encrypt the given password
 

Method Detail

encrypt

String encrypt(String password)
Encrypt the given password

Parameters:
password - the password to be encrypted
Returns:
the encrypted password

decrypt

String decrypt(String encryptedPassword)
Decrypt the given encrypted password

Parameters:
encryptedPassword - the encrypted password to decrypt
Returns:
the decrypted password


Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.