|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface PropertyValueSecured
Defines that the property value is secured. The mechanism of making the value secure is not specified at design time, since it is an implementation detail. Tagging the property allows to state there there is some form of encoding or encryption. The deployer is responsible that the mechanism of securing the values matches the mechanism deployed to the runtime.
Example
public interface MyProperties { ... @PropertyValueSecured String password(); }
Please note that at runtime the values will be decrypted and are in plain text passed to the caller. If the property should be passed to the client in secured form use
Example
public interface MyProperties { ... @PropertyValueSecured(decrypt=false) char[] password(); }
There may be implementations that allow to have different encryption mechanisms for different property sets or even single key, although this is not required by the specification.
PropertyLifecycle.definitionTime()
Optional Element Summary | |
---|---|
boolean |
decrypt Usually the secured value should be passed to the client decrypted. |
public abstract boolean decrypt
false
documents that this is a sensitive property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |