|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface AdminAccessController
Determines the behavior of administrative access to GlassFish v3. It should be enhanced to take into account Role-based Access Control. As of GlassFish v3, this takes care of authentication alone.
| Nested Class Summary | |
|---|---|
static class |
AdminAccessController.Access
Represents the possible types of access granted as the result of logging in as an admin user. |
| Method Summary | |
|---|---|
AdminAccessController.Access |
loginAsAdmin(String user,
String password,
String realm,
String originHost)
Authenticates the admin user by delegating to the underlying realm. |
AdminAccessController.Access |
loginAsAdmin(String user,
String password,
String realm,
String originHost,
Map<String,String> authRelatedHeaders,
Principal requestPrincipal)
Authenticates the admin user by delegating to the underlying realm. |
| Method Detail |
|---|
AdminAccessController.Access loginAsAdmin(String user,
String password,
String realm,
String originHost)
throws LoginException
Like the name suggests the method also ensures that the admin group membership is satisfied.
user - String representing the user name of the user doing an admin opearationpassword - String representing clear-text password of the user doing an admin operationrealm - String representing the name of the admin realm for given serveroriginHost - the host from which the request was sent
LoginException - if there is any error in underlying implementation
AdminAccessController.Access loginAsAdmin(String user,
String password,
String realm,
String originHost,
Map<String,String> authRelatedHeaders,
Principal requestPrincipal)
throws LoginException
This variant also logs the requester in as an admin if the specified Principal matches the Principal from the certificate in the truststore associated with the alias configured in the domain configuration. Typically, methods invoking this variant should pass the Principal associated with the request as reported by the secure transport and the value from the X-GlassFish-admin header (null if no such header exists).
user - String representing the user name of the user doing an admin opearationpassword - String representing clear-text password of the user doing an admin operationrealm - String representing the name of the admin realm for given serveroriginHost - the host from which the request was sentauthRelatedHeaders - authentication-related headers from the incoming admin requestrequestPrincipal - Principal associated with the incoming admin request (can be null)
LoginException - if there is any error in underlying implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||