@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 SecurePingClientpublic String pingUser()
pingUser in interface SecurePingClientpublic String pingAdmin()
pingAdmin in interface SecurePingClientpublic String pingExcluded()
pingExcluded in interface SecurePingClientpublic boolean isCallerInRole(String role)
isCallerInRole in interface SecurePingClientCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.