Search in sources :

Example 16 with SecurityService

use of org.apache.openejb.spi.SecurityService in project tomee by apache.

the class HttpRequestImpl method login.

@Override
public void login(final String s, final String s1) throws ServletException {
    final SecurityService component = SystemInstance.get().getComponent(SecurityService.class);
    try {
        final Object uuid = component.login(s, s1);
        component.associate(uuid);
    } catch (final LoginException e) {
        throw new ServletException(e);
    }
}
Also used : ServletException(javax.servlet.ServletException) SecurityService(org.apache.openejb.spi.SecurityService) LoginException(javax.security.auth.login.LoginException)

Aggregations

SecurityService (org.apache.openejb.spi.SecurityService)16 LoginException (javax.security.auth.login.LoginException)9 Test (org.junit.Test)3 RemoteException (java.rmi.RemoteException)2 AuthenticationException (javax.naming.AuthenticationException)2 Context (javax.naming.Context)2 InitialContext (javax.naming.InitialContext)2 BeanContext (org.apache.openejb.BeanContext)2 OpenEJBRuntimeException (org.apache.openejb.OpenEJBRuntimeException)2 ThreadContext (org.apache.openejb.core.ThreadContext)2 AbstractSecurityService (org.apache.openejb.core.security.AbstractSecurityService)2 ContainerSystem (org.apache.openejb.spi.ContainerSystem)2 IOException (java.io.IOException)1 Map (java.util.Map)1 Properties (java.util.Properties)1 EJBAccessException (javax.ejb.EJBAccessException)1 EJBLocalObject (javax.ejb.EJBLocalObject)1 EJBObject (javax.ejb.EJBObject)1 Callback (javax.security.auth.callback.Callback)1 UnsupportedCallbackException (javax.security.auth.callback.UnsupportedCallbackException)1