com.arsdigita.cms.publishToFile
Class LocalRequestPassword

java.lang.Object
  extended bycom.arsdigita.cms.publishToFile.LocalRequestPassword

public class LocalRequestPassword
extends Object

Static methods that can be used to include a password with requests to the local host. These methods can be used to increase the security of the requests to the local host that publishToFile makes to get the html pages to publish. Method setLocalRequestPassword sets the password (cookie) before making the request to the localhost. Code that processes the request would use method validLocalRequest to check for the cookie (password) value.

Version:
$Revision: #11 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Jeff Teeters

Field Summary
static String LOCAL_REQUEST_PASSWORD_NAME
           
static String m_localRequestPassword
           
static String versionId
           
 
Constructor Summary
LocalRequestPassword()
           
 
Method Summary
static void addCookie(URLConnection con, String key, String value)
          Add a cookie to a connection, preserving any previous cookies.
static void setLocalRequestPassword(URLConnection con)
          Set a cookie with the password for a local request.
static boolean validLocalRequest(javax.servlet.http.HttpServletRequest request)
          Return true if passed in request contains a valid localRequestPassword.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

LOCAL_REQUEST_PASSWORD_NAME

public static final String LOCAL_REQUEST_PASSWORD_NAME
See Also:
Constant Field Values

m_localRequestPassword

public static String m_localRequestPassword
Constructor Detail

LocalRequestPassword

public LocalRequestPassword()
Method Detail

addCookie

public static void addCookie(URLConnection con,
                             String key,
                             String value)
Add a cookie to a connection, preserving any previous cookies.

Parameters:
con - connection that the cookie is added to.

setLocalRequestPassword

public static void setLocalRequestPassword(URLConnection con)
Set a cookie with the password for a local request.

Parameters:
con - connection that the cookie is added to.

validLocalRequest

public static boolean validLocalRequest(javax.servlet.http.HttpServletRequest request)
Return true if passed in request contains a valid localRequestPassword.

Parameters:
request - request being processed, that should contain cookie


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC