Package org.astrogrid.samp.web
Class HubSwingClientAuthorizer
java.lang.Object
org.astrogrid.samp.web.HubSwingClientAuthorizer
- All Implemented Interfaces:
ClientAuthorizer
ClientAuthorizer implementation that queries the user for permission
via a popup dialogue.
- Since:
- 2 Feb 2011
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionHubSwingClientAuthorizer
(Component parent, CredentialPresenter presenter) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authorize
(HttpServer.Request request, Map securityMap) Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources.
-
Constructor Details
-
HubSwingClientAuthorizer
Constructor.- Parameters:
parent
- parent componentpresenter
- handles credential presentation to the user
-
-
Method Details
-
authorize
Description copied from interface:ClientAuthorizer
Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources. If so, the method exits normally. If authorization is denied, a SampException is thrown, with a message that indicates the reason for denial.- Specified by:
authorize
in interfaceClientAuthorizer
- Parameters:
request
- incoming HTTP requestsecurityMap
- credential items supplied explicitly by aspiring client to support its registration request- Throws:
SampException
- with reason if authorization is denied
-