/******************************************************************************* * Product of NIST/ITL Advanced Networking Technologies Division (ANTD). * * See ../../../../doc/uncopyright.html for conditions of use. * * Author: M. Ranganathan (mranga@nist.gov) * * Modified By: O. Deruelle (deruelle@nist.gov) * * Questions/Comments: nist-sip-dev@antd.nist.gov * *******************************************************************************/ package gov.nist.sip.sipheaders; import gov.nist.sip.*; /** * WWW Authenticate SIP (HTTP ) header. *
*
* Proxy-Authenticate  = "Proxy-Authenticate" ":" 1#challenge
*
* HTTP RFC 2616 
*
*/ public class ProxyAuthenticate extends SIPHeader { /** challenge field */ protected Challenge challenge; /** Constructor * @param ch Challenge to set */ public ProxyAuthenticate( Challenge ch) { super(PROXY_AUTHENTICATE); challenge = ch; } /** * Encode in canonical form. * @return String */ public String encode() { return headerName + COLON + SP + challenge.encode() + NEWLINE; } /** get the challenge * @return challenge */ public Challenge getChallenge() { return challenge; } }