Package org.linphone.core
Enum Class Privacy
- All Implemented Interfaces:
Serializable
,Comparable<Privacy>
,Constable
Defines privacy policy to apply as described by rfc3323.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPrivacy service must perform the specified services or fail the request.Special keyword to use privacy as defined either globally or by proxy using
ProxyConfig.setPrivacy(int)
Request that privacy services modify headers that cannot be set arbitrarily by
the user (Contact/Via).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.Privacy services must not perform any privacy function.Request that privacy services provide privacy for session media.Request that privacy services provide a user-level privacy function. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Privacy
fromInt
(int value) protected static Privacy[]
fromIntArray
(int[] values) int
toInt()
protected static int[]
toIntArray
(Privacy[] values) static Privacy
Returns the enum constant of this class with the specified name.static Privacy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Privacy services must not perform any privacy function.
-
User
Request that privacy services provide a user-level privacy function.
With this mode, "from" header is hidden, usually replaced by From: "Anonymous"
<sip:anonymous@anonymous.invalid> -
Header
Request that privacy services modify headers that cannot be set arbitrarily by
the user (Contact/Via).
-
Session
Request that privacy services provide privacy for session media.
-
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.
Note that a user requesting multiple types of privacy MUST include all of the
requested privacy types in its Privacy header field value -
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)
-
-
Field Details
-
mValue
protected final int mValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
- Throws:
RuntimeException
-
fromIntArray
- Throws:
RuntimeException
-
toIntArray
- Throws:
RuntimeException
-
toInt
public int toInt()
-