@PermitAll @RunAs(value="admin") public class SecurePingClientEJB extends Object implements SecurePingClientRemote, SecurePingClientLocal
Modifier and Type | Field and Description |
---|---|
(package private) SessionContext |
ctx |
private static org.slf4j.Logger |
logger |
(package private) SecurePingRemote |
securePingServer |
Constructor and Description |
---|
SecurePingClientEJB() |
Modifier and Type | Method and Description |
---|---|
private String |
getInfo(String prefix)
Return what this EJB's container thinks about the caller.
|
void |
init() |
boolean |
isCallerInRole(String role)
Return info from this bean and the securePingServer after performing
a run-as.
|
String |
pingAdmin()
Return info from this bean and the securePingServer after performing
a run-as.
|
String |
pingAll()
Return info from this bean and the securePingServer after performing
a run-as.
|
String |
pingExcluded()
Return info from this bean and the securePingServer after performing
a run-as.
|
String |
pingUser()
Return info from this bean and the securePingServer after performing
a run-as.
|
private static final org.slf4j.Logger logger
SessionContext ctx
SecurePingRemote securePingServer
@PostConstruct public void init()
private String getInfo(String prefix)
public String pingAll()
pingAll
in interface SecurePingClient
public String pingUser()
pingUser
in interface SecurePingClient
public String pingAdmin()
pingAdmin
in interface SecurePingClient
public String pingExcluded()
pingExcluded
in interface SecurePingClient
public boolean isCallerInRole(String role)
isCallerInRole
in interface SecurePingClient
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.