org.apache.wicket.settings
Interface ISecuritySettings

All Known Implementing Classes:
Settings

public interface ISecuritySettings

Interface for security related settings

Author:
Igor Vaynberg (ivaynberg)

Field Summary
static java.lang.String DEFAULT_ENCRYPTION_KEY
          encryption key used by default crypt factory
 
Method Summary
 IAuthorizationStrategy getAuthorizationStrategy()
          Gets the authorization strategy.
 CookieValuePersisterSettings getCookieValuePersisterSettings()
          Get the defaults to be used by persistence manager
 ICryptFactory getCryptFactory()
           
 boolean getEnforceMounts()
          Gets whether mounts should be enforced.
 IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
           
 void setAuthorizationStrategy(IAuthorizationStrategy strategy)
          Sets the authorization strategy.
 void setCookieValuePersisterSettings(CookieValuePersisterSettings cookieValuePersisterSettings)
           
 void setCryptFactory(ICryptFactory cryptFactory)
          Sets the factory that will be used to create crypt objects.
 void setEnforceMounts(boolean enforce)
          Sets whether mounts should be enforced.
 void setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
           
 

Field Detail

DEFAULT_ENCRYPTION_KEY

public static final java.lang.String DEFAULT_ENCRYPTION_KEY
encryption key used by default crypt factory

See Also:
Constant Field Values
Method Detail

getAuthorizationStrategy

public IAuthorizationStrategy getAuthorizationStrategy()
Gets the authorization strategy.

Returns:
Returns the authorizationStrategy.

getCookieValuePersisterSettings

public CookieValuePersisterSettings getCookieValuePersisterSettings()
Get the defaults to be used by persistence manager

Returns:
CookieValuePersisterSettings

getCryptFactory

public ICryptFactory getCryptFactory()
Returns:
crypt factory used to generate crypt objects

getEnforceMounts

public boolean getEnforceMounts()
Gets whether mounts should be enforced. If true, requests for mounted targets have to done through the mounted paths. If, for instance, a bookmarkable page is mounted to a path, a request to that same page via the bookmarkablePage parameter will be denied.

Returns:
Whether mounts should be enforced

getUnauthorizedComponentInstantiationListener

public IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
Returns:
The listener
See Also:
IUnauthorizedComponentInstantiationListener

setAuthorizationStrategy

public void setAuthorizationStrategy(IAuthorizationStrategy strategy)
Sets the authorization strategy.

Parameters:
strategy - new authorization strategy

setCookieValuePersisterSettings

public void setCookieValuePersisterSettings(CookieValuePersisterSettings cookieValuePersisterSettings)
Parameters:
cookieValuePersisterSettings - The cookieValuePersisterSettings to set.

setCryptFactory

public void setCryptFactory(ICryptFactory cryptFactory)
Sets the factory that will be used to create crypt objects. The crypt object returned from the first call is cached.

Parameters:
cryptFactory -

setEnforceMounts

public void setEnforceMounts(boolean enforce)
Sets whether mounts should be enforced. If true, requests for mounted targets have to done through the mounted paths. If, for instance, a bookmarkable page is mounted to a path, a request to that same page via the bookmarkablePage parameter will be denied.

Parameters:
enforce - Whether mounts should be enforced

setUnauthorizedComponentInstantiationListener

public void setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
Parameters:
unauthorizedComponentInstantiationListener - The listener to set
See Also:
IUnauthorizedComponentInstantiationListener


Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.