java.io.Serializable
, java.lang.Comparable<SecurityLevel>
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4692") public enum SecurityLevel extends java.lang.Enum<SecurityLevel>
Enum Constant | 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 | Description |
---|---|---|
static SecurityLevel |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null