Home | History | Annotate | Download | only in ims
      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 Telecommunications Institute (Aveiro, Portugal)  *
     28  ************************************************************************************************/
     29 
     30 
     31 package gov.nist.javax.sip.parser.ims;
     32 
     33 /**
     34  * Security-Verify header parser.
     35  *
     36  * @author Miguel Freitas (IT) PT-Inovacao
     37  */
     38 
     39 
     40 import gov.nist.javax.sip.header.SIPHeader;
     41 import gov.nist.javax.sip.parser.Lexer;
     42 import gov.nist.javax.sip.parser.TokenTypes;
     43 import java.text.ParseException;
     44 import gov.nist.javax.sip.header.ims.SecurityVerify;
     45 import gov.nist.javax.sip.header.ims.SecurityVerifyList;
     46 
     47 
     48 public class SecurityVerifyParser extends SecurityAgreeParser
     49 {
     50 
     51     public SecurityVerifyParser(String security)
     52     {
     53         super(security);
     54     }
     55 
     56     protected SecurityVerifyParser(Lexer lexer)
     57     {
     58         super(lexer);
     59     }
     60 
     61 
     62     public SIPHeader parse() throws ParseException
     63     {
     64         dbg_enter("SecuriryVerify parse");
     65         try {
     66 
     67             headerName(TokenTypes.SECURITY_VERIFY);
     68             SecurityVerify secVerify = new SecurityVerify();
     69             SecurityVerifyList secVerifyList =
     70                 (SecurityVerifyList) super.parse(secVerify);
     71             return secVerifyList;
     72 
     73         } finally {
     74             dbg_leave("SecuriryVerify parse");
     75         }
     76     }
     77 
     78 
     79 
     80 
     81 
     82 }
     83 
     84 
     85