@ApplicationScoped public class CommandLineAuthService extends Object implements org.jboss.errai.security.shared.service.AuthenticationService
Modifier and Type | Field and Description |
---|---|
static org.jboss.errai.security.shared.api.identity.User |
PLACEHOLDER |
Constructor and Description |
---|
CommandLineAuthService() |
Modifier and Type | Method and Description |
---|---|
org.jboss.errai.security.shared.api.identity.User |
getUser() |
boolean |
isLoggedIn() |
org.jboss.errai.security.shared.api.identity.User |
login(String username,
String password) |
void |
logout() |
public static final org.jboss.errai.security.shared.api.identity.User PLACEHOLDER
public org.jboss.errai.security.shared.api.identity.User login(String username, String password)
login
in interface org.jboss.errai.security.shared.service.AuthenticationService
public boolean isLoggedIn()
isLoggedIn
in interface org.jboss.errai.security.shared.service.AuthenticationService
public void logout()
logout
in interface org.jboss.errai.security.shared.service.AuthenticationService
public org.jboss.errai.security.shared.api.identity.User getUser()
getUser
in interface org.jboss.errai.security.shared.service.AuthenticationService
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.