org.apache.wicket.settings.def
Class SecuritySettings

java.lang.Object
  extended by org.apache.wicket.settings.def.SecuritySettings
All Implemented Interfaces:
ISecuritySettings

public class SecuritySettings
extends java.lang.Object
implements ISecuritySettings

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman

Field Summary
 
Fields inherited from interface org.apache.wicket.settings.ISecuritySettings
DEFAULT_ENCRYPTION_KEY
 
Constructor Summary
SecuritySettings()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuritySettings

public SecuritySettings()
Method Detail

getAuthorizationStrategy

public IAuthorizationStrategy getAuthorizationStrategy()
Description copied from interface: ISecuritySettings
Gets the authorization strategy.

Specified by:
getAuthorizationStrategy in interface ISecuritySettings
Returns:
Returns the authorizationStrategy.
See Also:
ISecuritySettings.getAuthorizationStrategy()

getCryptFactory

public ICryptFactory getCryptFactory()
Specified by:
getCryptFactory in interface ISecuritySettings
Returns:
crypt factory used to generate crypt objects
See Also:
ISecuritySettings.getCryptFactory()

getEnforceMounts

public boolean getEnforceMounts()
Description copied from interface: ISecuritySettings
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.

Specified by:
getEnforceMounts in interface ISecuritySettings
Returns:
Whether mounts should be enforced
See Also:
ISecuritySettings.getEnforceMounts()

getUnauthorizedComponentInstantiationListener

public IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
Specified by:
getUnauthorizedComponentInstantiationListener in interface ISecuritySettings
Returns:
The listener
See Also:
ISecuritySettings.getUnauthorizedComponentInstantiationListener()

setAuthorizationStrategy

public void setAuthorizationStrategy(IAuthorizationStrategy strategy)
Description copied from interface: ISecuritySettings
Sets the authorization strategy.

Specified by:
setAuthorizationStrategy in interface ISecuritySettings
Parameters:
strategy - new authorization strategy
See Also:
ISecuritySettings.setAuthorizationStrategy(org.apache.wicket.authorization.IAuthorizationStrategy)

setCryptFactory

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

Specified by:
setCryptFactory in interface ISecuritySettings
See Also:
ISecuritySettings.setCryptFactory(org.apache.wicket.util.crypt.ICryptFactory)

setEnforceMounts

public void setEnforceMounts(boolean enforce)
Description copied from interface: ISecuritySettings
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.

Specified by:
setEnforceMounts in interface ISecuritySettings
Parameters:
enforce - Whether mounts should be enforced
See Also:
ISecuritySettings.setEnforceMounts(boolean)

setUnauthorizedComponentInstantiationListener

public void setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener unauthorizedComponentInstantiationListener)
Specified by:
setUnauthorizedComponentInstantiationListener in interface ISecuritySettings
Parameters:
unauthorizedComponentInstantiationListener - The listener to set
See Also:
ISecuritySettings.setUnauthorizedComponentInstantiationListener(org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener)

getAuthenticationStrategy

public IAuthenticationStrategy getAuthenticationStrategy()
Description copied from interface: ISecuritySettings
Gets the authentication strategy.

Specified by:
getAuthenticationStrategy in interface ISecuritySettings
Returns:
Returns the authentication strategy.
See Also:
ISecuritySettings.getAuthenticationStrategy()

setAuthenticationStrategy

public void setAuthenticationStrategy(IAuthenticationStrategy strategy)
Description copied from interface: ISecuritySettings
Sets the authentication strategy.

Specified by:
setAuthenticationStrategy in interface ISecuritySettings
Parameters:
strategy - new authentication strategy
See Also:
ISecuritySettings.setAuthenticationStrategy(org.apache.wicket.authentication.IAuthenticationStrategy)


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