Code example for MalformedChallengeException

0
     * @param header the challenge header 
     *  
     * @throws MalformedChallengeException is thrown if the authentication challenge 
     * is malformed 
     */ 
    @Override 
    public void processChallenge( 
            final Header header) throws MalformedChallengeException {
        super.processChallenge(header);
        this.complete = true;
    } 
 
    /** 
     * Tests if the Basic authentication process has been completed. 
     *  
     * @return <tt>true</tt> if Basic authorization has been processed, 
     *   <tt>false</tt> otherwise. 
     */ 
    public boolean isComplete() { 
        return this.complete;
    }