@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4692") public enum SecurityLevel extends Enum<SecurityLevel>
Enum Constant and Description |
---|
INTEGRITY
The other party is authenticated and the data is not tampered with.
|
NONE
No security guarantee.
|
PRIVACY_AND_INTEGRITY
In addition to
INTEGRITY , the data is only visible to the intended communication
parties. |
Modifier and Type | Method and Description |
---|---|
static SecurityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityLevel NONE
public static final SecurityLevel INTEGRITY
public static final SecurityLevel PRIVACY_AND_INTEGRITY
INTEGRITY
, the data is only visible to the intended communication
parties.public static SecurityLevel[] values()
for (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
public static SecurityLevel 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 null