Package org.astrogrid.samp.web
Interface ClientAuthorizer
-
- All Known Implementing Classes:
ExtremeSwingClientAuthorizer
,HubSwingClientAuthorizer
public interface ClientAuthorizer
Defines authorization functionality which is used to determine whether a client is permitted to register with the hub.- Since:
- 2 Feb 2011
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
authorize(HttpServer.Request request, java.lang.String appName)
Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources.
-
-
-
Method Detail
-
authorize
boolean authorize(HttpServer.Request request, java.lang.String appName)
Indicates whether an HTTP request representing an otherwise unauthorized connection attempt will be permitted access to sensitive system resources. The client submitting the request provides theappName
parameter by way of additional information about its identity. However, the value of this name is supplied by the (potentially malicious) applicant, so cannot in itself be regarded as an additional security measure.- Parameters:
request
- incoming HTTP requestappName
- name by which the application submitting the request wishes to be known- Returns:
- true iff submitter of the request should be permitted access to sensitive system resources in the future
-
-