Package com.zfabrik.servletjsp.security
Class ComponentHashLoginServiceFactory
java.lang.Object
com.zfabrik.servletjsp.security.ComponentHashLoginServiceFactory
A convenience factory for z2 component resource based user realm implementations.
Declare as
<Call name="addBean"> <Arg> <Call class="com.zfabrik.servletjsp.security.ComponentHashLoginServiceFactory" name="loginService"> <Arg>realm</Arg> <Arg>environment/webUsers</Arg> </Call> </Arg> </Call>The component resource folder is expected to hold a file
realm.properties
that holds
Jetty-style defined users. See also
http://wiki.eclipse.org/Jetty/Tutorial/Realms.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.security.LoginService
getLoginService(String name, String componentName)
-
Field Details
-
REALM_PROPERTIES
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ComponentHashLoginServiceFactory
public ComponentHashLoginServiceFactory()
-
-
Method Details
-
getLoginService
public static org.eclipse.jetty.security.LoginService getLoginService(String name, String componentName) throws IOException- Throws:
IOException
-