Package com.adaptris.core.http.jetty
Class ConfigurableSecurityHandler
- java.lang.Object
-
- com.adaptris.core.http.jetty.ConfigurableSecurityHandler
-
- All Implemented Interfaces:
SecurityHandlerWrapper
public class ConfigurableSecurityHandler extends java.lang.Object implements SecurityHandlerWrapper
Jetty Security Handler Wrapper which allows the configuration of different Login Service and Authenticators.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description ConfigurableSecurityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.security.SecurityHandler
createSecurityHandler()
JettyAuthenticatorFactory
getAuthenticator()
JettyLoginServiceFactory
getLoginService()
java.util.List<SecurityConstraint>
getSecurityConstraints()
void
setAuthenticator(JettyAuthenticatorFactory authenticator)
Sets the factory which will create the underlying Authenticatorvoid
setLoginService(JettyLoginServiceFactory loginService)
Sets the factory which will create the underlying LoginServicevoid
setSecurityConstraints(java.util.List<SecurityConstraint> securityConstraints)
-
-
-
Method Detail
-
createSecurityHandler
public org.eclipse.jetty.security.SecurityHandler createSecurityHandler() throws java.lang.Exception
- Specified by:
createSecurityHandler
in interfaceSecurityHandlerWrapper
- Throws:
java.lang.Exception
- See Also:
SecurityHandlerWrapper.createSecurityHandler()
-
getLoginService
public JettyLoginServiceFactory getLoginService()
-
setLoginService
public void setLoginService(JettyLoginServiceFactory loginService)
Sets the factory which will create the underlying LoginService- Parameters:
loginService
- the login service to use.
-
getAuthenticator
public JettyAuthenticatorFactory getAuthenticator()
-
setAuthenticator
public void setAuthenticator(JettyAuthenticatorFactory authenticator)
Sets the factory which will create the underlying Authenticator
-
getSecurityConstraints
public java.util.List<SecurityConstraint> getSecurityConstraints()
-
setSecurityConstraints
public void setSecurityConstraints(java.util.List<SecurityConstraint> securityConstraints)
-
-