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-Client header parser. 35 * 36 * @author Miguel Freitas (IT) PT-Inovacao 37 */ 38 39 40 import gov.nist.core.Token; 41 import gov.nist.javax.sip.header.SIPHeader; 42 import gov.nist.javax.sip.parser.Lexer; 43 import gov.nist.javax.sip.parser.TokenTypes; 44 import java.text.ParseException; 45 import gov.nist.javax.sip.header.ims.SecurityClient; 46 import gov.nist.javax.sip.header.ims.SecurityClientList; 47 48 49 public class SecurityClientParser extends SecurityAgreeParser 50 { 51 SecurityClientParser(String security)52 public SecurityClientParser(String security) 53 { 54 super(security); 55 } 56 SecurityClientParser(Lexer lexer)57 protected SecurityClientParser(Lexer lexer) 58 { 59 super(lexer); 60 } 61 62 parse()63 public SIPHeader parse() throws ParseException 64 { 65 dbg_enter("SecuriryClient parse"); 66 try { 67 68 headerName(TokenTypes.SECURITY_CLIENT); 69 SecurityClient secClient = new SecurityClient(); 70 SecurityClientList secClientList = 71 (SecurityClientList) super.parse(secClient); 72 return secClientList; 73 74 75 } finally { 76 dbg_leave("SecuriryClient parse"); 77 } 78 } 79 80 81 82 83 84 } 85 86 87