Class SecurityManager
- All Implemented Interfaces:
Proxy
Controls security settings in a 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 GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new SecurityManager.SecurityManager(MemorySegment address) Create a SecurityManager instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected SecurityManagerasParent()Return this instance as if it were its parent type.static SecurityManager.Builder<? extends SecurityManager.Builder> builder()ASecurityManager.Builderobject constructs aSecurityManagerwith the specified properties.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the SecurityManager class.voidregisterUriSchemeAsCorsEnabled(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 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, 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 TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SecurityManager
Create a SecurityManager instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SecurityManager
public SecurityManager()Create a new SecurityManager.
-
-
Method Details
-
getType
Get the GType of the SecurityManager class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
registerUriSchemeAsCorsEnabled
Register
schemeas 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
Register
schemeas 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
Register
schemeas an empty document scheme.This means that they are allowed to commit synchronously.
- Parameters:
scheme- a URI scheme
-
registerUriSchemeAsLocal
Register
schemeas 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
Register
schemeas 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
Register
schemeas 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
Whether
schemeis 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
Whether
schemeis 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
Whether
schemeis 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
Whether
schemeis 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
Whether
schemeis 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
Whether
schemeis 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
-