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
Nested ClassesModifier and TypeClassDescriptionstatic classSecurityManager.Builder<B extends SecurityManager.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SecurityManager.SecurityManager(MemorySegment address) Create a SecurityManager proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected SecurityManagerasParent()Returns this instance as if it were its parent type.static SecurityManager.Builder<? extends SecurityManager.Builder> builder()ASecurityManager.Builderobject constructs aSecurityManagerwith the specified properties.static @Nullable TypegetType()Get the GType of the SecurityManager classvoidregisterUriSchemeAsCorsEnabled(String scheme) Registerschemeas a CORS (Cross-origin resource sharing) enabled scheme.voidRegisterschemeas a display isolated scheme.voidRegisterschemeas an empty document scheme.voidregisterUriSchemeAsLocal(String scheme) Registerschemeas a local scheme.voidregisterUriSchemeAsNoAccess(String scheme) Registerschemeas a no-access scheme.voidregisterUriSchemeAsSecure(String scheme) Registerschemeas a secure scheme.booleanuriSchemeIsCorsEnabled(String scheme) Whetherschemeis considered as a CORS enabled scheme.booleanuriSchemeIsDisplayIsolated(String scheme) Whetherschemeis considered as a display isolated scheme.booleanuriSchemeIsEmptyDocument(String scheme) Whetherschemeis considered as an empty document scheme.booleanuriSchemeIsLocal(String scheme) Whetherschemeis considered as a local scheme.booleanuriSchemeIsNoAccess(String scheme) Whetherschemeis considered as a no-access scheme.booleanuriSchemeIsSecure(String scheme) Whetherschemeis 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, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.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
-
SecurityManager
public SecurityManager()Creates a new SecurityManager.
-
-
Method Details
-
getType
Get the GType of the SecurityManager class- Returns:
- the GType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, 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
Registerschemeas 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
Registerschemeas 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
Registerschemeas an empty document scheme.This means that they are allowed to commit synchronously.
- Parameters:
scheme- a URI scheme
-
registerUriSchemeAsLocal
Registerschemeas 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
Registerschemeas 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
Registerschemeas 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
Whetherschemeis considered as a CORS enabled scheme.See also webkit_security_manager_register_uri_scheme_as_cors_enabled().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis a CORS enabled scheme orfalseotherwise.
-
uriSchemeIsDisplayIsolated
Whetherschemeis considered as a display isolated scheme.See also webkit_security_manager_register_uri_scheme_as_display_isolated().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis a display isolated scheme orfalseotherwise.
-
uriSchemeIsEmptyDocument
Whetherschemeis considered as an empty document scheme.See also webkit_security_manager_register_uri_scheme_as_empty_document().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis an empty document scheme orfalseotherwise.
-
uriSchemeIsLocal
Whetherschemeis considered as a local scheme.See also webkit_security_manager_register_uri_scheme_as_local().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis a local scheme orfalseotherwise.
-
uriSchemeIsNoAccess
Whetherschemeis considered as a no-access scheme.See also webkit_security_manager_register_uri_scheme_as_no_access().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis a no-access scheme orfalseotherwise.
-
uriSchemeIsSecure
Whetherschemeis considered as a secure scheme.See also webkit_security_manager_register_uri_scheme_as_secure().
- Parameters:
scheme- a URI scheme- Returns:
trueifschemeis a secure scheme orfalseotherwise.
-
builder
ASecurityManager.Builderobject constructs aSecurityManagerwith the specified properties. Use the variousset...()methods to set properties, and finish construction withSecurityManager.Builder.build().- Returns:
- the builder object
-