public abstract class PropertyResolver
extends java.lang.Object
Decoder
implementation.
At the moment only one scheme {password} is registered, which will be resolved using PasswordDecoder
. If the system
property is represented like this:
sysprop.encrypted.property={password}PW:AAAAEDNPp8M3xBUiU+goN1cmjBYAAAAQorWHploKWvTb5bmjjgiCWQAAABCa6cnOef76qd67FXsgN4nV
then the property 'encrypted.property' will actually have the plain text value of the encoded value associated with it
when System.getProperty("encrypted.property")
is called after full initialisation occurs.PasswordDecoder
Constructor and Description |
---|
PropertyResolver() |
Modifier and Type | Method and Description |
---|---|
static PropertyResolver |
getDefaultInstance()
Convenience method to get a default instance of the PropertyResolver.
|
abstract void |
init()
Initialises the PropertyResolver
|
abstract java.lang.String |
resolve(java.lang.String s)
If the property needs decoding, then this method returns the decoded property.
|
public static PropertyResolver getDefaultInstance() throws java.lang.Exception
java.lang.Exception
- on exceptionpublic abstract void init() throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String resolve(java.lang.String s) throws java.lang.Exception
s
- - The current value for the property.java.lang.Exception