com.arsdigita.kernel.security
Class ParanoidSecurityHelper

java.lang.Object
  extended bycom.arsdigita.kernel.security.DefaultSecurityHelper
      extended bycom.arsdigita.kernel.security.ParanoidSecurityHelper
All Implemented Interfaces:
SecurityHelper

public class ParanoidSecurityHelper
extends DefaultSecurityHelper

Implementation of the SecurityHelper interface that always returns true for isSecure. This implementation is not safe, since it may cause the system to send sensitive data over an insecure connection. This class is used for simulating secure conditions for testing.

Author:
Sameer Ajmani
See Also:
SecurityHelper

Field Summary
static String versionId
           
 
Constructor Summary
ParanoidSecurityHelper()
           
 
Method Summary
 boolean isSecure(javax.servlet.http.HttpServletRequest req)
          Always returns true (to simulate secure conditions).
 
Methods inherited from class com.arsdigita.kernel.security.DefaultSecurityHelper
getLoginURL, requiresLogin
 
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
Constructor Detail

ParanoidSecurityHelper

public ParanoidSecurityHelper()
Method Detail

isSecure

public boolean isSecure(javax.servlet.http.HttpServletRequest req)
Always returns true (to simulate secure conditions).

Specified by:
isSecure in interface SecurityHelper
Overrides:
isSecure in class DefaultSecurityHelper
Returns:
true.


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