public abstract class GCFPermission
extends java.security.Permission
GCFPermission
consists of a URI string representing access rights to a connection
based on the specified protocol scheme. The URI must conform to the
syntax requirements of
RFC 3986
with extensions
to permit wildcard matching.
A specification that extends the Generic Connection Framework with a new
protocol scheme should define a subclass of GCFPermission
to guard access to the protocol.
Connector.open(java.lang.String)| Constructor and Description |
|---|
GCFPermission(java.lang.String uri)
Constructs a
GCFPermission with the specified URI. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProtocol()
Returns the protocol scheme of this
GCFPermission. |
java.lang.String |
getURI()
Returns the URI of this
GCFPermission. |
public GCFPermission(java.lang.String uri)
GCFPermission with the specified URI.
The URI must conform to the syntax requirements of
RFC 3986
with extensions
to permit wildcard matching.
This constructor performs protocol-independent
normalization
of the specified URI string;
subsequent queries for the URI or portions of the URI
will reflect the normalized form.uri - the URI string.java.lang.IllegalArgumentException - if uri is malformed.java.lang.NullPointerException - if uri is null.getURI()public java.lang.String getProtocol()
GCFPermission.
The protocol scheme is the string preceding the first ':' in the
URI.getURI()public java.lang.String getURI()
GCFPermission.Permission.getName().Permission.getName()Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.