Class TextEncryptorBindHandler
- java.lang.Object
-
- org.springframework.boot.context.properties.bind.AbstractBindHandler
-
- org.springframework.cloud.bootstrap.TextEncryptorBindHandler
-
- All Implemented Interfaces:
org.springframework.boot.context.properties.bind.BindHandler
public class TextEncryptorBindHandler extends org.springframework.boot.context.properties.bind.AbstractBindHandlerBindHandler that uses a TextEncryptor to decrypt text if properly prefixed with {cipher}.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringENCRYPTED_PROPERTY_PREFIXPrefix indicating an encrypted value.
-
Constructor Summary
Constructors Constructor Description TextEncryptorBindHandler(org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor, KeyProperties keyProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectonSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName name, org.springframework.boot.context.properties.bind.Bindable<?> target, org.springframework.boot.context.properties.bind.BindContext context, Object result)-
Methods inherited from class org.springframework.boot.context.properties.bind.AbstractBindHandler
onFailure, onFinish, onStart
-
-
-
-
Field Detail
-
ENCRYPTED_PROPERTY_PREFIX
protected static final String ENCRYPTED_PROPERTY_PREFIX
Prefix indicating an encrypted value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextEncryptorBindHandler
public TextEncryptorBindHandler(org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor, KeyProperties keyProperties)
-
-
Method Detail
-
onSuccess
public Object onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName name, org.springframework.boot.context.properties.bind.Bindable<?> target, org.springframework.boot.context.properties.bind.BindContext context, Object result)
- Specified by:
onSuccessin interfaceorg.springframework.boot.context.properties.bind.BindHandler- Overrides:
onSuccessin classorg.springframework.boot.context.properties.bind.AbstractBindHandler
-
-