info.magnolia.cms.security
Class SecurityUtil

java.lang.Object
  extended by info.magnolia.cms.security.SecurityUtil

public class SecurityUtil
extends Object

Util class to test if a user is logged in.

Version:
$Id: SecurityUtil.java 53378 2012-01-13 15:17:23Z ochytil $

Constructor Summary
SecurityUtil()
           
 
Method Summary
static boolean isAnonymous()
          Checks if the currently acting user is anonymous.
static boolean isAuthenticated()
           
static String stripPasswordFromCacheLog(String log)
          Used for removing password parameter from cache key.
static String stripPasswordFromUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtil

public SecurityUtil()
Method Detail

isAnonymous

public static boolean isAnonymous()
Checks if the currently acting user is anonymous.


isAuthenticated

public static boolean isAuthenticated()

stripPasswordFromCacheLog

public static String stripPasswordFromCacheLog(String log)
Used for removing password parameter from cache key.

Parameters:
cacheKey.toString() -
Returns:

stripPasswordFromUrl

public static String stripPasswordFromUrl(String url)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.