public final class EncryptionNamespaceHandler
extends org.springframework.beans.factory.xml.NamespaceHandlerSupport
Namespace handler for jasypt's encryption namespace.
In order to use this namespace, add its XML schema declaration to your Spring beans file like:
<beans xmlns="http://www.springframework.org/schema/beans"
...
xmlns:encryption="http://www.jasypt.org/schema/encryption"
...
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
...
http://www.jasypt.org/schema/encryption
http://www.jasypt.org/schema/encryption/jasypt-spring31-encryption-1.xsd
...">
This namespace offers the following elements for creating instances of specific jasypt artifacts and add them to the Spring application context:
DigesterConfig
(simple, string, environment): <encryption:digester-config/>ByteDigester
(pooled or standard, depending on selected pool size): <encryption:byte-digester/>StringDigester
(pooled or standard, depending on selected pool size): <encryption:string-digester/>BasicPasswordEncryptor
: <encryption:basic-password-encryptor/>StrongPasswordEncryptor
: <encryption:strong-password-encryptor/>ConfigurablePasswordEncryptor
: <encryption:configurable-password-encryptor/>PBEConfig
(simple, string, environment): <encryption:encryptor-config/>ByteEncryptor
(pooled or standard, depending on selected pool size): <encryption:byte-encryptor/>StringEncryptor
(pooled or standard, depending on selected pool size): <encryption:string-encryptor/>BigIntegerEncryptor
(pooled or standard, depending on selected pool size): <encryption:big-integer-encryptor/>BigDecimalEncryptor
(pooled or standard, depending on selected pool size): <encryption:big-decimal-encryptor/>BasicTextEncryptor
: <encryption:basic-text-encryptor/>StrongTextEncryptor
: <encryption:strong-text-encryptor/>EncryptableProperties
(equivalent to <util:properties/> adding property decryption): <encryption:encryptable-properties/>org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer
(equivalent to <context:property-placeholder/> adding property decryption): <encryption:encryptable-property-placeholder/>org.jasypt.spring3.properties.EncryptablePropertyOverrideConfigurer
(equivalent to <context:property-override/> adding property decryption): <encryption:encryptable-property-override/>Constructor and Description |
---|
EncryptionNamespaceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
Copyright © 2019 The JASYPT team. All rights reserved.