Package org.uberfire.ext.security.server
Class ServletSecurityAuthenticationService
- java.lang.Object
-
- org.uberfire.backend.server.security.adapter.GroupAdapterAuthorizationSource
-
- org.uberfire.ext.security.server.ServletSecurityAuthenticationService
-
- All Implemented Interfaces:
org.jboss.errai.security.shared.service.AuthenticationService
@ApplicationScoped public class ServletSecurityAuthenticationService extends org.uberfire.backend.server.security.adapter.GroupAdapterAuthorizationSource implements org.jboss.errai.security.shared.service.AuthenticationService
-
-
Constructor Summary
Constructors Constructor Description ServletSecurityAuthenticationService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getPrincipals()protected static javax.servlet.http.HttpServletRequestgetRequestForThread()org.jboss.errai.security.shared.api.identity.UsergetUser()booleanisLoggedIn()org.jboss.errai.security.shared.api.identity.Userlogin(String username, String password)voidlogout()
-
-
-
Method Detail
-
getRequestForThread
protected static javax.servlet.http.HttpServletRequest getRequestForThread()
-
login
public org.jboss.errai.security.shared.api.identity.User login(String username, String password)
- Specified by:
loginin interfaceorg.jboss.errai.security.shared.service.AuthenticationService
-
isLoggedIn
public boolean isLoggedIn()
- Specified by:
isLoggedInin interfaceorg.jboss.errai.security.shared.service.AuthenticationService
-
logout
public void logout()
- Specified by:
logoutin interfaceorg.jboss.errai.security.shared.service.AuthenticationService
-
getUser
public org.jboss.errai.security.shared.api.identity.User getUser()
- Specified by:
getUserin interfaceorg.jboss.errai.security.shared.service.AuthenticationService
-
-