public class ExtremeSwingClientAuthorizer extends java.lang.Object implements ClientAuthorizer
Modifier and Type | Field and Description |
---|---|
private java.awt.Component |
parent_ |
Constructor and Description |
---|
ExtremeSwingClientAuthorizer(java.awt.Component parent)
Constructor.
|
Modifier and Type | Method and 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.
|
private javax.swing.border.Border |
createBorder(boolean highlight)
Returns a new border of fixed dimensions which may or may not include
an element of highlighting.
|
public ExtremeSwingClientAuthorizer(java.awt.Component parent)
parent
- parent component, may be nullpublic boolean authorize(HttpServer.Request request, java.lang.String appName)
ClientAuthorizer
appName
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.authorize
in interface ClientAuthorizer
request
- incoming HTTP requestappName
- name by which the application submitting the request
wishes to be knownprivate javax.swing.border.Border createBorder(boolean highlight)
highlight
- true to highlight border