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 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

static final String DEFAULT_ENCRYPTION_KEY
encryption key used by default crypt factory

See Also:
Constant Field Values
Method Detail

getAuthorizationStrategy

IAuthorizationStrategy getAuthorizationStrategy()
Gets the authorization strategy.

Returns:
Returns the authorizationStrategy.

getCookieValuePersisterSettings

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

Returns:
CookieValuePersisterSettings

getCryptFactory

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

getEnforceMounts

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

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

setAuthorizationStrategy

void setAuthorizationStrategy(IAuthorizationStrategy strategy)
Sets the authorization strategy.

Parameters:
strategy - new authorization strategy

setCookieValuePersisterSettings

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

setCryptFactory

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

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

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


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