Java Code Examples for org.jasypt.properties.PropertyValueEncryptionUtils#decrypt()

The following examples show how to use org.jasypt.properties.PropertyValueEncryptionUtils#decrypt() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EncryptableServletContextPropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 2
Source File: EncryptablePropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 3
Source File: EncryptablePropertyOverrideConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 4
Source File: EncryptableServletContextPropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 5
Source File: EncryptablePreferencesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 6
Source File: EncryptablePropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 7
Source File: EncryptablePropertyOverrideConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 8
Source File: EncryptableServletContextPropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 9
Source File: EncryptablePreferencesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 10
Source File: EncryptablePropertySourcesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 11
Source File: EncryptablePreferencesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 12
Source File: EncryptablePropertyOverrideConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 13
Source File: EncryptablePropertySourcesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 14
Source File: EncryptablePropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 15
Source File: EncryptablePropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 16
Source File: EncryptableServletContextPropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 17
Source File: EncryptablePreferencesPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
@Override
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 18
Source File: EncryptablePropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 19
Source File: EncryptablePropertyOverrideConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}
 
Example 20
Source File: EncryptableServletContextPropertyPlaceholderConfigurer.java    From jasypt with Apache License 2.0 5 votes vote down vote up
protected String convertPropertyValue(final String originalValue) {
	if (!PropertyValueEncryptionUtils.isEncryptedValue(originalValue)) {
		return originalValue;
	}
	if (this.stringEncryptor != null) {
		return PropertyValueEncryptionUtils.decrypt(originalValue,
				this.stringEncryptor);

	}
	return PropertyValueEncryptionUtils.decrypt(originalValue, this.textEncryptor);
}