public class SecuritySettings extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCRYPTION_KEY
encryption key used by default crypt factory
|
Constructor and Description |
---|
SecuritySettings() |
public static final String DEFAULT_ENCRYPTION_KEY
public IAuthorizationStrategy getAuthorizationStrategy()
public ICryptFactory getCryptFactory()
DEFAULT_ENCRYPTION_KEY
is
used instead.public boolean getEnforceMounts()
true
, requests for a page will be
allowed only if the page has been explicitly mounted in MyApplication#init()
.
This setting basically disables BookmarkableMapper
public IUnauthorizedComponentInstantiationListener getUnauthorizedComponentInstantiationListener()
IUnauthorizedComponentInstantiationListener
public SecuritySettings setAuthorizationStrategy(IAuthorizationStrategy strategy)
strategy
- new authorization strategythis
object for chainingpublic SecuritySettings setCryptFactory(ICryptFactory cryptFactory)
cryptFactory
- this
object for chainingpublic SecuritySettings setEnforceMounts(boolean enforce)
enforce
- Whether mounts should be enforcedthis
object for chainingpublic SecuritySettings setUnauthorizedComponentInstantiationListener(IUnauthorizedComponentInstantiationListener listener)
listener
- The listener to setthis
object for chainingIUnauthorizedComponentInstantiationListener
public IUnauthorizedResourceRequestListener getUnauthorizedResourceRequestListener()
public SecuritySettings setUnauthorizedResourceRequestListener(IUnauthorizedResourceRequestListener listener)
listener
- The listenerthis
object for chainingpublic IAuthenticationStrategy getAuthenticationStrategy()
public SecuritySettings setAuthenticationStrategy(IAuthenticationStrategy strategy)
strategy
- new authentication strategythis
object for chainingCopyright © 2006–2022 Apache Software Foundation. All rights reserved.