Class SecureEntryMaskingIdentifiableConfiguration
java.lang.Object
net.solarnetwork.settings.support.SecureEntryMaskingIdentifiableConfiguration
- All Implemented Interfaces:
InvocationHandler
public class SecureEntryMaskingIdentifiableConfiguration
extends Object
implements InvocationHandler
Proxy
InvocationHandler that can mask (hide)
IdentifiableConfiguration properties that contain sensitive
information based on a set of SettingSpecifier objects associated
with the configuration.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionSecureEntryMaskingIdentifiableConfiguration(IdentifiableConfiguration delegate, List<SettingSpecifier> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifiableConfigurationcreateProxy(IdentifiableConfiguration configuration, List<SettingSpecifier> settings) Create a new proxy instance that masks the secure entry settings of an existing configuration object.
-
Constructor Details
-
SecureEntryMaskingIdentifiableConfiguration
public SecureEntryMaskingIdentifiableConfiguration(IdentifiableConfiguration delegate, List<SettingSpecifier> settings) Constructor.- Parameters:
delegate- the configuration to delegate tosettings- the settings that define secure entry properties
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
createProxy
public static IdentifiableConfiguration createProxy(IdentifiableConfiguration configuration, List<SettingSpecifier> settings) Create a new proxy instance that masks the secure entry settings of an existing configuration object.- Parameters:
configuration- the configuration to mask the secure settings onsettings- the settings associated with the configuration, that define which ones require masking- Returns:
- the proxy, which will implement all interfaces defined on
configuration
-