org.apache.wicket.settings
Interface ISecuritySettings

All Known Implementing Classes:
SecuritySettings

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
 IAuthenticationStrategy getAuthenticationStrategy()
          Gets the authentication strategy.
 IAuthorizationStrategy getAuthorizationStrategy()
          Gets the authorization strategy.
 ICryptFactory getCryptFactory()
           
 boolean getEnforceMounts()
          Gets whether mounts should be enforced.
 IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
           
 void setAuthenticationStrategy(IAuthenticationStrategy strategy)
          Sets the authentication strategy.
 void setAuthorizationStrategy(IAuthorizationStrategy strategy)
          Sets the authorization strategy.
 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 java.lang.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.

getAuthenticationStrategy

IAuthenticationStrategy getAuthenticationStrategy()
Gets the authentication strategy.

Returns:
Returns the authentication strategy.

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

setAuthenticationStrategy

void setAuthenticationStrategy(IAuthenticationStrategy strategy)
Sets the authentication strategy.

Parameters:
strategy - new authentication strategy

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 © 2006-2011 Apache Software Foundation. All Rights Reserved.