class SwingOriginAuthorizer extends java.lang.Object implements OriginAuthorizer
| Modifier and Type | Field and Description |
|---|---|
private java.awt.Component |
parent_ |
| Constructor and Description |
|---|
SwingOriginAuthorizer(java.awt.Component parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(java.lang.String origin)
Indicates whether a client with a given origin is permitted
to access resources.
|
boolean |
authorizeAll()
Indicates whether clients from arbitrary origins (including none)
are permitted to access resources.
|
protected boolean |
getResponse(java.lang.String[] lines)
Presents some lines of text to the user and solicits a yes/no
response from them.
|
public SwingOriginAuthorizer(java.awt.Component parent)
parent - parent componentpublic boolean authorize(java.lang.String origin)
OriginAuthorizerauthorize in interface OriginAuthorizerorigin - client Originpublic boolean authorizeAll()
OriginAuthorizerauthorizeAll in interface OriginAuthorizerprotected boolean getResponse(java.lang.String[] lines)
lines - lines of formatted plain text
(not too many; not too long)