|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trendmicro.grid.acl.l0.PublicAuthenticationRestService
@Service public class PublicAuthenticationRestService
Implements a REST api to PublicAuthenticationService, to prepare the offering of REST services with authentication.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.trendmicro.grid.acl.l0.Level0RestService |
|---|
Level0RestService.RestUtil |
| Constructor Summary | |
|---|---|
PublicAuthenticationRestService()
|
|
| Method Summary | |
|---|---|
String |
authenticate(String username,
String password)
Delegates to PublicAuthenticationService.authenticate(String, String). |
String |
getApiKey(String username,
String password,
SortedSet<String> requiredRoles)
Delegates to PublicAuthenticationService.authenticateAndGetApiKey(String, char[], java.util.Set) or
PublicAuthenticationService.getApiKey(java.util.Set) depending on whether username and
password where specified or not. |
String |
getUserDisplayName()
Delegates to PublicAuthenticationService.getUserDisplayName(). |
String |
getUserRoles()
Delegates to PublicAuthenticationService.getUserRoles(). |
String |
isAuthenticated()
Delegates to PublicAuthenticationService.isAuthenticated(). |
String |
logout()
Delegates to PublicAuthenticationService.logout(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublicAuthenticationRestService()
| Method Detail |
|---|
public String isAuthenticated()
PublicAuthenticationService.isAuthenticated().
public String authenticate(String username,
String password)
PublicAuthenticationService.authenticate(String, String).
username - The query parameter containing the username.password - The query parameter containing the password.
public String logout()
PublicAuthenticationService.logout().
public String getApiKey(String username,
String password,
SortedSet<String> requiredRoles)
PublicAuthenticationService.authenticateAndGetApiKey(String, char[], java.util.Set) or
PublicAuthenticationService.getApiKey(java.util.Set) depending on whether username and
password where specified or not.
username - The query parameter containing the username (optional, defaults to "").password - The query parameter containing the password (optional, defaults to "").requiredRoles - The set of required roles (see delegate for more info).
public String getUserDisplayName()
PublicAuthenticationService.getUserDisplayName().
public String getUserRoles()
PublicAuthenticationService.getUserRoles().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||