• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Conditions Of Use
3 *
4 * This software was developed by employees of the National Institute of
5 * Standards and Technology (NIST), an agency of the Federal Government.
6 * Pursuant to title 15 Untied States Code Section 105, works of NIST
7 * employees are not subject to copyright protection in the United States
8 * and are considered to be in the public domain.  As a result, a formal
9 * license is not needed to use the software.
10 *
11 * This software is provided by NIST as a service and is expressly
12 * provided "AS IS."  NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
13 * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
15 * AND DATA ACCURACY.  NIST does not warrant or make any representations
16 * regarding the use of the software or the results thereof, including but
17 * not limited to the correctness, accuracy, reliability or usefulness of
18 * the software.
19 *
20 * Permission to use this software is contingent upon your acceptance
21 * of the terms of this agreement
22 *
23 * .
24 *
25 */
26 /*****************************************************************************
27  * PRODUCT OF PT INOVACAO - EST DEPARTMENT and Aveiro University - Portugal)   *
28  *****************************************************************************/
29 
30 
31 package gov.nist.javax.sip.header.ims;
32 
33 
34 
35 import java.text.ParseException;
36 
37 import javax.sip.header.Header;
38 import javax.sip.header.Parameters;
39 
40 /**
41  * Privacy Header RFC 3323.
42  *
43  * <p>Sintax: </p>
44  *<pre>
45  * Privacy-hdr  = "Privacy" HCOLON priv-value *(";" priv-value)
46  * priv-value   = "header" / "session" / "user" /
47  *                "id" / "none" / "critical" / token
48  * example:
49  *           Privacy: id
50  * </pre>
51  *
52  * @author Miguel Freitas (IT) PT-Inovacao
53  */
54 
55 
56 public interface PrivacyHeader extends Header
57 {
58 
59     /**
60      * Name of PrivacyHeader
61      */
62     public final static String NAME = "Privacy";
63 
64 
65     /**
66      * Set Privacy header value
67      * @param  privacy -- privacy type to set.
68      */
setPrivacy(String privacy)69     public void setPrivacy(String privacy) throws ParseException;
70 
71     /**
72      * Get Privacy header value
73      * @return privacy token name
74      */
getPrivacy()75     public String getPrivacy();
76 
77 
78 }
79 
80