Class SecurityManager
- All Implemented Interfaces:
Proxy
WebKitWebContext
.
The WebKitSecurityManager
defines security settings for URI
schemes in a WebKitWebContext
. Get it from the context with
webkit_web_context_get_security_manager(), and use it to register a
URI scheme with a certain security level, or to check if it already
has it.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SecurityManager.Builder<B extends SecurityManager.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.static class
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionSecurityManager
(MemorySegment address) Create a SecurityManager proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected SecurityManager
asParent()
Returns this instance as if it were its parent type.static SecurityManager.Builder
<? extends SecurityManager.Builder> builder()
ASecurityManager.Builder
object constructs aSecurityManager
with the specified properties.static Type
getType()
Get the GType of the SecurityManager classvoid
registerUriSchemeAsCorsEnabled
(String scheme) Registerscheme
as a CORS (Cross-origin resource sharing) enabled scheme.void
Registerscheme
as a display isolated scheme.void
Registerscheme
as an empty document scheme.void
registerUriSchemeAsLocal
(String scheme) Registerscheme
as a local scheme.void
registerUriSchemeAsNoAccess
(String scheme) Registerscheme
as a no-access scheme.void
registerUriSchemeAsSecure
(String scheme) Registerscheme
as a secure scheme.boolean
uriSchemeIsCorsEnabled
(String scheme) Whetherscheme
is considered as a CORS enabled scheme.boolean
uriSchemeIsDisplayIsolated
(String scheme) Whetherscheme
is considered as a display isolated scheme.boolean
uriSchemeIsEmptyDocument
(String scheme) Whetherscheme
is considered as an empty document scheme.boolean
uriSchemeIsLocal
(String scheme) Whetherscheme
is considered as a local scheme.boolean
uriSchemeIsNoAccess
(String scheme) Whetherscheme
is considered as a no-access scheme.boolean
uriSchemeIsSecure
(String scheme) Whetherscheme
is considered as a secure scheme.Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getMemoryLayout, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SecurityManager
Create a SecurityManager proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
registerUriSchemeAsCorsEnabled
Registerscheme
as a CORS (Cross-origin resource sharing) enabled scheme.This means that CORS requests are allowed. See W3C CORS specification http://www.w3.org/TR/cors/.
- Parameters:
scheme
- a URI scheme
-
registerUriSchemeAsDisplayIsolated
Registerscheme
as a display isolated scheme.This means that pages cannot display these URIs unless they are from the same scheme.
- Parameters:
scheme
- a URI scheme
-
registerUriSchemeAsEmptyDocument
Registerscheme
as an empty document scheme.This means that they are allowed to commit synchronously.
- Parameters:
scheme
- a URI scheme
-
registerUriSchemeAsLocal
Registerscheme
as a local scheme.This means that other non-local pages cannot link to or access URIs of this scheme.
- Parameters:
scheme
- a URI scheme
-
registerUriSchemeAsNoAccess
Registerscheme
as a no-access scheme.This means that pages loaded with this URI scheme cannot access pages loaded with any other URI scheme.
- Parameters:
scheme
- a URI scheme
-
registerUriSchemeAsSecure
Registerscheme
as a secure scheme.This means that mixed content warnings won't be generated for this scheme when included by an HTTPS page.
- Parameters:
scheme
- a URI scheme
-
uriSchemeIsCorsEnabled
Whetherscheme
is considered as a CORS enabled scheme.See also webkit_security_manager_register_uri_scheme_as_cors_enabled().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is a CORS enabled scheme orfalse
otherwise.
-
uriSchemeIsDisplayIsolated
Whetherscheme
is considered as a display isolated scheme.See also webkit_security_manager_register_uri_scheme_as_display_isolated().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is a display isolated scheme orfalse
otherwise.
-
uriSchemeIsEmptyDocument
Whetherscheme
is considered as an empty document scheme.See also webkit_security_manager_register_uri_scheme_as_empty_document().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is an empty document scheme orfalse
otherwise.
-
uriSchemeIsLocal
Whetherscheme
is considered as a local scheme.See also webkit_security_manager_register_uri_scheme_as_local().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is a local scheme orfalse
otherwise.
-
uriSchemeIsNoAccess
Whetherscheme
is considered as a no-access scheme.See also webkit_security_manager_register_uri_scheme_as_no_access().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is a no-access scheme orfalse
otherwise.
-
uriSchemeIsSecure
Whetherscheme
is considered as a secure scheme.See also webkit_security_manager_register_uri_scheme_as_secure().
- Parameters:
scheme
- a URI scheme- Returns:
true
ifscheme
is a secure scheme orfalse
otherwise.
-
builder
ASecurityManager.Builder
object constructs aSecurityManager
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withSecurityManager.Builder.build()
.
-