FileDocCategorySizeDatePackage
AuthorizationParser.javaAPI DocphoneME MR2 API (J2ME)2379Wed May 02 18:00:42 BST 2007gov.nist.siplite.parser

AuthorizationParser

public class AuthorizationParser extends ChallengeParser
Parser for authorization headers.
version
JAIN-SIP-1.1 This code is in the public domain.

(Omit source code)

Fields Summary
Constructors Summary
public AuthorizationParser()
Default constructor.

public AuthorizationParser(String authorization)
Constructor with initial authorization string.

param
authorization message to parse

        super(authorization);
    
protected AuthorizationParser(Lexer lexer)
Cosntructor with initial lexer engine.

param
lexer to set

        super(lexer);
    
Methods Summary
public Headerparse()
Parses the String message .

return
Header (Authorization object)
throws
ParseException if the message does not respect the spec.

        dbg_enter("parse");
        try {
            
            headerName(TokenTypes.AUTHORIZATION);
            AuthorizationHeader auth = new AuthorizationHeader();
            super.parse(auth);
            return auth;
        } finally {
            dbg_leave("parse");
            
        }