public class SecurityHandlerFactory extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.eclipse.jetty.security.SecurityHandler>
| Constructor and Description |
|---|
SecurityHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initialize member variables if not set by user in application context.
|
org.eclipse.jetty.security.Authenticator |
getAuthenticator()
Gets the authenticator.
|
Map<String,org.eclipse.jetty.util.security.Constraint> |
getConstraints()
Gets the constraints.
|
org.eclipse.jetty.security.LoginService |
getLoginService()
Gets the loginService.
|
org.eclipse.jetty.security.SecurityHandler |
getObject()
Construct new security handler for basic authentication.
|
Class<?> |
getObjectType() |
String |
getRealm()
Gets the realm.
|
List<User> |
getUsers()
Gets the users.
|
boolean |
isSingleton() |
void |
setAuthenticator(org.eclipse.jetty.security.Authenticator authenticator)
Sets the authenticator.
|
void |
setConstraints(Map<String,org.eclipse.jetty.util.security.Constraint> constraints)
Sets the constraints.
|
void |
setLoginService(org.eclipse.jetty.security.LoginService loginService)
Sets the loginService.
|
void |
setRealm(String realm)
Sets the realm.
|
void |
setUsers(List<User> users)
Sets the users.
|
public org.eclipse.jetty.security.SecurityHandler getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.eclipse.jetty.security.SecurityHandler>Exceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.eclipse.jetty.security.SecurityHandler>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.eclipse.jetty.security.SecurityHandler>public void setUsers(List<User> users)
users - the users to setpublic String getRealm()
public void setRealm(String realm)
realm - the realm to setpublic Map<String,org.eclipse.jetty.util.security.Constraint> getConstraints()
public void setConstraints(Map<String,org.eclipse.jetty.util.security.Constraint> constraints)
constraints - the constraints to setpublic org.eclipse.jetty.security.LoginService getLoginService()
public void setLoginService(org.eclipse.jetty.security.LoginService loginService)
loginService - the loginService to setpublic org.eclipse.jetty.security.Authenticator getAuthenticator()
public void setAuthenticator(org.eclipse.jetty.security.Authenticator authenticator)
authenticator - the authenticator to setCopyright © 2008–2018 ConSol Software GmbH. All rights reserved.