Common interface for all Password Based Encryptors which receive a String message and return a String result.
For a default implementation, see {@link StandardPBEStringEncryptor}.
979899100101102103104105106107
String encryptorRegisteredName = props.getProperty(ParameterNaming.ENCRYPTOR_REGISTERED_NAME); HibernatePBEEncryptorRegistry encryptorRegistry = HibernatePBEEncryptorRegistry.getInstance(); PBEStringEncryptor encryptor = encryptorRegistry.getPBEStringEncryptor(encryptorRegisteredName); if (encryptor == null) { throw new EncryptionInitializationException( "No string encryptor registered for hibernate " +
242243244245246247248249250251252
if (this.useEncryptorName) { HibernatePBEEncryptorRegistry registry = HibernatePBEEncryptorRegistry.getInstance(); PBEStringEncryptor pbeEncryptor = registry.getPBEStringEncryptor(this.encryptorName); if (pbeEncryptor == null) { throw new EncryptionInitializationException( "No string encryptor registered for hibernate " + "with name \"" + this.encryptorName + "\"");
99100101102103104105106107108109