Enum Constant and Description |
---|
Critical
Privacy service must perform the specified services or fail the request.
|
Default
Special keyword to use privacy as defined either globally or by proxy using
ProxyConfig.setPrivacy(int) |
Header
Request that privacy services modify headers that cannot be set arbitrarily by
the user (Contact/Via). |
Id
rfc3325 The presence of this privacy type in a Privacy header field indicates
that the user would like the Network Asserted Identity to be kept private with respect to SIP entities outside the Trust Domain with which the user authenticated. |
None
Privacy services must not perform any privacy function.
|
Session
Request that privacy services provide privacy for session media.
|
User
Request that privacy services provide a user-level privacy function.
|
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static Privacy |
fromInt(int value) |
int |
toInt() |
static Privacy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Privacy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Privacy None
public static final Privacy User
public static final Privacy Header
public static final Privacy Session
public static final Privacy Id
public static final Privacy Critical
public static final Privacy Default
ProxyConfig.setPrivacy(int)
public static Privacy[] values()
for (Privacy c : Privacy.values()) System.out.println(c);
public static Privacy 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 nullpublic static Privacy fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()