ContentsIndex
Barracuda.GUI.CertificateLoader
MaintainerHenning Guenther
Description
This module contains a gui widget used to load certificates and matching private keys.
Synopsis
data CertificateLoader
data PrivateKeyLoader
data Loader
certificateLoaderNew :: Maybe FilePath -> (Maybe String -> IO ()) -> IO CertificateLoader
privateKeyLoaderNew :: Maybe FilePath -> IO () -> IO PrivateKeyLoader
loaderNew :: (Certificate -> PrivateKey -> IO ()) -> IO Loader
certificateLoaderGet :: CertificateLoader -> IO (Maybe Certificate)
privateKeyLoaderGet :: PrivateKeyLoader -> IO (Maybe PrivateKey)
certificateKeyMatch :: Certificate -> PrivateKey -> Maybe Bool
loaderGetWidget :: Loader -> Widget
certificateGetUserID :: Certificate -> Maybe UserID
Documentation
data CertificateLoader
Loader widget for certificates.
data PrivateKeyLoader
Loader widget for private keys.
data Loader
A loader widget including a CertificateLoader and a PrivateKeyLoader.
certificateLoaderNew
:: Maybe FilePathAn optional initial file selection
-> (Maybe String -> IO ())Callback for user selection
-> IO CertificateLoader
Creates a FileChooserDialog that previews the username of a selected certificate.
privateKeyLoaderNew
:: Maybe FilePathAn optional initial selection
-> IO ()Callback for user selection
-> IO PrivateKeyLoader
Creates a new PrivateKeyLoader.
loaderNew
:: (Certificate -> PrivateKey -> IO ())Callback for a new user selection
-> IO Loader
Creates a new Loader. It uses the default paths to read previously stored selection paths to provide an initial configuration.
certificateLoaderGet :: CertificateLoader -> IO (Maybe Certificate)
Returns the currently selected Certificate.
privateKeyLoaderGet :: PrivateKeyLoader -> IO (Maybe PrivateKey)
Returns the currently selected PrivateKey.
certificateKeyMatch :: Certificate -> PrivateKey -> Maybe Bool
Tries to match a Certificate against a PrivateKey.
loaderGetWidget :: Loader -> Widget
Returns the Widget to be drawn.
certificateGetUserID :: Certificate -> Maybe UserID
Tries to read the UserID belonging to a Certificate.
Produced by Haddock version 0.8