/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.guacamole.auth.radius.form;

import org.apache.guacamole.form.Field;
import org.codehaus.jackson.annotate.JsonProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RadiusChallengeResponseField extends Field {

    /**
     * Logger for this class.
     */
    private final Logger logger = LoggerFactory.getLogger(RadiusChallengeResponseField.class);

    /**
     * The field returned by the RADIUS challenge/response.
     */
    public static final String PARAMETER_NAME = "guac-radius-challenge-response";

    /**
     * The type of field to initialize for the challenge/response.
     */
    private static final String RADIUS_FIELD_TYPE = "GUAC_RADIUS_CHALLENGE_RESPONSE";

    /**
     * The message the RADIUS server sent back in the challenge.
     */
    private final String replyMsg;

    /**
     * Initialize the field with the reply message and the state.
     */
    public RadiusChallengeResponseField(String replyMsg) {
        super(PARAMETER_NAME, RADIUS_FIELD_TYPE);
        logger.debug("Initializing the RADIUS challenge/response field: {}", replyMsg);

        this.replyMsg = replyMsg;

    }

    public String getReplyMsg() {
        return replyMsg;
    }
}

@@ -1003,171 +1003,176 @@
 y;%0A%0A
-public class RadiusChallengeResponseField extends Field %7B%0A%0A    /**%0A     * Logger for this class.%0A     */%0A    private final Logger logger = LoggerFactory.getLogger(
+/**%0A * A form used to prompt the user for additional information when%0A * the RADIUS server sends a challenge back to the user with a reply%0A * message.%0A */%0Apublic class 
 Radi
@@ -1199,16 +1199,24 @@
 ield
-.class);
+ extends Field %7B
 %0A%0A  
@@ -1862,76 +1862,23 @@
     
-logger.debug(%22Initializing the RADIUS challenge/response field: %7B%7D%22,
+this.replyMsg =
  rep
@@ -1886,35 +1886,53 @@
 yMsg
-)
 ;%0A%0A    
+%7D%0A%0A
     
-this.replyMsg =
+/**%0A     * Get the value of the
  rep
@@ -1932,33 +1932,39 @@
 the replyMsg
-;%0A
+ field.
 %0A    
-%7D%0A
+ */
 %0A    public 

Add JavaDoc comments for the response field class; remove some debug code.