packageorg.jivesoftware.util;publicinterfaceEncryptor{/** * Encrypt a clear text String. * * @param value The clear text attribute * @return The encrypted attribute, or null */publicabstractStringencrypt(Stringvalue);/** * Decrypt an encrypted String. * * @param value The encrypted attribute in Base64 encoding * @return The clear text attribute, or null */publicabstractStringdecrypt(Stringvalue);/** * Set the encryption key. This will apply the user-defined key, * truncated or filled (via the default key) as needed to meet * the key length specifications. * * @param key The encryption key */publicabstractvoidsetKey(Stringkey);}