public enum Safety extends Enum<Safety>
A value of SAFE indicates that the action so characterised is known to be harmless. This applies to actions that can only affect the internal state of the application. Actions that might be the target of an injection attack should be marked UNSAFE.
Potentially unsafe capabilities, which should be marked UNSAFE, include:
DataSource.makeDataSource(java.lang.String)
(these may include shell execution; note that table load
typically calls this method)Enum Constant and Description |
---|
SAFE
Poses no security risk.
|
UNSAFE
Poses a potential security risk.
|
Modifier and Type | Method and Description |
---|---|
static Safety |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Safety[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Safety SAFE
public static final Safety UNSAFE
public static Safety[] values()
for (Safety c : Safety.values()) System.out.println(c);
public static Safety valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.