Class CommandLineAuthService
- java.lang.Object
-
- org.kie.workbench.common.project.cli.CommandLineAuthService
-
- All Implemented Interfaces:
org.jboss.errai.security.shared.service.AuthenticationService
@ApplicationScoped public class CommandLineAuthService extends Object implements org.jboss.errai.security.shared.service.AuthenticationService
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.errai.security.shared.api.identity.UserPLACEHOLDER
-
Constructor Summary
Constructors Constructor Description CommandLineAuthService()
-
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()
-
-
-
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
-
-