Class ElytronAuthenticationService
- java.lang.Object
-
- org.uberfire.backend.server.security.ElytronAuthenticationService
-
- All Implemented Interfaces:
org.jboss.errai.security.shared.service.AuthenticationService
@ApplicationScoped @Alternative public class ElytronAuthenticationService extends Object implements org.jboss.errai.security.shared.service.AuthenticationService
-
-
Constructor Summary
Constructors Constructor Description ElytronAuthenticationService(ElytronIdentityHelper elytronIdentityHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.errai.security.shared.api.identity.UsergetUser()booleanisLoggedIn()org.jboss.errai.security.shared.api.identity.Userlogin(String username, String password)voidlogout()
-
-
-
Constructor Detail
-
ElytronAuthenticationService
@Inject public ElytronAuthenticationService(ElytronIdentityHelper elytronIdentityHelper)
-
-
Method Detail
-
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
-
-