Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- registerUriSchemeAsCorsEnabled
- registerUriSchemeAsDisplayIsolated
- registerUriSchemeAsEmptyDocument
- registerUriSchemeAsLocal
- registerUriSchemeAsNoAccess
- registerUriSchemeAsSecure
- uriSchemeIsCorsEnabled
- uriSchemeIsDisplayIsolated
- uriSchemeIsEmptyDocument
- uriSchemeIsLocal
- uriSchemeIsNoAccess
- uriSchemeIsSecure
- newtype SecurityManager = SecurityManager (ManagedPtr SecurityManager)
- class GObject o => IsSecurityManager o
- toSecurityManager :: (MonadIO m, IsSecurityManager o) => o -> m SecurityManager
- noSecurityManager :: Maybe SecurityManager
- securityManagerRegisterUriSchemeAsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerRegisterUriSchemeAsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerRegisterUriSchemeAsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerRegisterUriSchemeAsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerRegisterUriSchemeAsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerRegisterUriSchemeAsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m ()
- securityManagerUriSchemeIsCorsEnabled :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
- securityManagerUriSchemeIsDisplayIsolated :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
- securityManagerUriSchemeIsEmptyDocument :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
- securityManagerUriSchemeIsLocal :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
- securityManagerUriSchemeIsNoAccess :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
- securityManagerUriSchemeIsSecure :: (HasCallStack, MonadIO m, IsSecurityManager a) => a -> Text -> m Bool
Exported types
newtype SecurityManager Source #
class GObject o => IsSecurityManager o Source #
toSecurityManager :: (MonadIO m, IsSecurityManager o) => o -> m SecurityManager Source #
Methods
registerUriSchemeAsCorsEnabled
securityManagerRegisterUriSchemeAsCorsEnabled Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
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/.
registerUriSchemeAsDisplayIsolated
securityManagerRegisterUriSchemeAsDisplayIsolated Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
as a display isolated scheme. This means that pages cannot
display these URIs unless they are from the same scheme.
registerUriSchemeAsEmptyDocument
securityManagerRegisterUriSchemeAsEmptyDocument Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
as an empty document scheme. This means that
they are allowed to commit synchronously.
registerUriSchemeAsLocal
securityManagerRegisterUriSchemeAsLocal Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
as a local scheme. This means that other non-local pages
cannot link to or access URIs of this scheme.
registerUriSchemeAsNoAccess
securityManagerRegisterUriSchemeAsNoAccess Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
as a no-access scheme. This means that pages loaded
with this URI scheme cannot access pages loaded with any other URI scheme.
registerUriSchemeAsSecure
securityManagerRegisterUriSchemeAsSecure Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m () |
Register scheme
as a secure scheme. This means that mixed
content warnings won't be generated for this scheme when
included by an HTTPS page.
uriSchemeIsCorsEnabled
securityManagerUriSchemeIsCorsEnabled Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as a CORS enabled scheme.
See also securityManagerRegisterUriSchemeAsCorsEnabled
.
uriSchemeIsDisplayIsolated
securityManagerUriSchemeIsDisplayIsolated Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as a display isolated scheme.
See also securityManagerRegisterUriSchemeAsDisplayIsolated
.
uriSchemeIsEmptyDocument
securityManagerUriSchemeIsEmptyDocument Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as an empty document scheme.
See also securityManagerRegisterUriSchemeAsEmptyDocument
.
uriSchemeIsLocal
securityManagerUriSchemeIsLocal Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as a local scheme.
See also securityManagerRegisterUriSchemeAsLocal
.
uriSchemeIsNoAccess
securityManagerUriSchemeIsNoAccess Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as a no-access scheme.
See also securityManagerRegisterUriSchemeAsNoAccess
.
uriSchemeIsSecure
securityManagerUriSchemeIsSecure Source #
:: (HasCallStack, MonadIO m, IsSecurityManager a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Whether scheme
is considered as a secure scheme.
See also securityManagerRegisterUriSchemeAsSecure
.