/***********************************************************************
 * 
 *  Copyright (C) 2006 Novell, Inc. All Rights Reserved.
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; version 2.1
 *  of the License.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, Novell, Inc.
 * 
 *  To contact Novell about this file by physical or electronic mail, 
 *  you may find current contact information at www.novell.com.
 * 
 *  Author: Juan Carlos Luciani <jluciani@novell.com>
 *  
 ***********************************************************************/

package com.novell.casa.authtoksvc;

/**
 * ProDefs Class.
 * <p>
 * This class contains constants utilized in the Casa Client/Server
 * protocol.
 * 
 */
public final class ProtoDefs
{

   /*
    * XML Declaration used in the Casa Client/Server protocol
    */
   public final static String xmlDeclaration = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

   /*
    * XML Element Name Constants for the documents exchanged between the
    * Casa Client and the Casa Server.
    */
   public final static String authRequestElementName = "auth_req";
   public final static String authResponseElementName = "auth_resp";
   public final static String getAuthPolicyRequestElementName = "get_auth_policy_req";
   public final static String getAuthPolicyResponseElementName = "get_auth_policy_resp";
   public final static String getAuthTokRequestElementName = "get_auth_tok_req";
   public final static String getAuthTokResponseElementName = "get_auth_tok_resp";
   public final static String authMechTokenElementName = "auth_mech_token";
   public final static String statusElementName = "status";
   public final static String sessionTokenElementName = "session_token";
   public final static String authTokenElementName = "auth_token";
   public final static String authPolicyElementName = "auth_policy";
   public final static String identTokenElementName = "ident_token";
   public final static String lifetimeElementName = "lifetime";
   public final static String signatureElementName = "signature";
   public final static String typeElementName = "type";
   public final static String descriptionElementName = "description";
   public final static String serviceElementName = "service";
   public final static String hostElementName = "host";
   public final static String identIdElementName = "ident_id";
   public final static String realmElementName = "realm";
   public final static String authSourceElementName = "auth_source";
   public final static String mechanismElementName = "mechanism";
   public final static String mechanismInfoElementName = "mechanism_info";

   /*
    * HTTP Status Codes and Messages
    */
   public final static String httpOkStatusCode = "200";
   public final static String httpOkStatusMsg = "OK";
   public final static String httpUnauthorizedStatusCode = "401";
   public final static String httpUnauthorizedStatusMsg = "Unauthorized";
   public final static String httpNotFoundStatusCode = "404";
   public final static String httpNotFoundStatusMsg = "Not Found";
   public final static String httpServerErrorStatusCode = "500";
   public final static String httpServerErrorStatusMsg = "Internal Server Error";
}
