Safe Haskell | None |
---|---|
Language | Haskell2010 |
SAML2.XML
Synopsis
- module SAML2.XML.Types
- module SAML2.Core.Datatypes
- data URI
- xpTrimAnyElem :: PU XmlTree
- xpTrimElemNS :: Namespace -> String -> PU a -> PU a
- xpXmlLang :: PU Language
- type IP = String
- xpIP :: PU IP
- data Identified b a
- = Identified !a
- | Unidentified !b
- class Eq b => Identifiable b a | a -> b where
- identifier :: a -> b
- identifiedValues :: [a]
- reidentify :: b -> Identified b a
- unidentify :: Identifiable b a => Identified b a -> b
- xpIdentified :: Identifiable b a => PU b -> PU (Identified b a)
- xpIdentifier :: Identifiable b a => PU b -> String -> PU a
- type IdentifiedURI = Identified URI
- samlToDoc :: XmlPickler a => a -> XmlTree
- samlToDocFirstChild :: XmlPickler a => a -> XmlTree
- samlToXML :: XmlPickler a => a -> ByteString
- docToSAML :: XmlPickler a => XmlTree -> Either String a
- docToXMLWithoutRoot :: XmlTree -> ByteString
- docToXMLWithRoot :: XmlTree -> ByteString
- xmlToSAML :: XmlPickler a => ByteString -> Either String a
- xmlToDoc :: ByteString -> Maybe XmlTree
- xmlToDocE :: ByteString -> Either String XmlTree
Documentation
module SAML2.XML.Types
module SAML2.Core.Datatypes
Represents a general universal resource identifier using its component parts.
For example, for the URI
foo://anonymous@www.haskell.org:42/ghc?query#frag
the components are:
Instances
data Identified b a Source #
Constructors
Identified !a | |
Unidentified !b |
Instances
(Show a, Show b) => Show (Identified b a) Source # | |
Defined in SAML2.XML Methods showsPrec :: Int -> Identified b a -> ShowS # show :: Identified b a -> String # showList :: [Identified b a] -> ShowS # | |
Default a => Default (Identified b a) Source # | |
Defined in SAML2.XML Methods def :: Identified b a Source # | |
(Eq a, Eq b) => Eq (Identified b a) Source # | |
Defined in SAML2.XML Methods (==) :: Identified b a -> Identified b a -> Bool # (/=) :: Identified b a -> Identified b a -> Bool # | |
XmlPickler (Identified XString LogoutReason) Source # | |
Defined in SAML2.Core.Protocols Methods | |
Identifiable URI a => XmlPickler (Identified URI a) Source # | |
class Eq b => Identifiable b a | a -> b where Source #
Minimal complete definition
Methods
identifier :: a -> b Source #
identifiedValues :: [a] Source #
default identifiedValues :: (Bounded a, Enum a) => [a] Source #
reidentify :: b -> Identified b a Source #
Instances
Identifiable XString DecisionType Source # | |
Defined in SAML2.Core.Assertions Methods identifier :: DecisionType -> XString Source # identifiedValues :: [DecisionType] Source # reidentify :: XString -> Identified XString DecisionType Source # | |
Identifiable XString AuthnContextComparisonType Source # | |
Defined in SAML2.Core.Protocols | |
Identifiable XString LogoutReason Source # | |
Defined in SAML2.Core.Protocols Methods identifier :: LogoutReason -> XString Source # identifiedValues :: [LogoutReason] Source # reidentify :: XString -> Identified XString LogoutReason Source # | |
Identifiable XString ContactType Source # | |
Defined in SAML2.Metadata.Metadata Methods identifier :: ContactType -> XString Source # identifiedValues :: [ContactType] Source # reidentify :: XString -> Identified XString ContactType Source # | |
Identifiable XString KeyTypes Source # | |
Defined in SAML2.Metadata.Metadata Methods identifier :: KeyTypes -> XString Source # identifiedValues :: [KeyTypes] Source # reidentify :: XString -> Identified XString KeyTypes Source # | |
Identifiable URI Binding Source # | |
Defined in SAML2.Bindings.Identifiers Methods identifier :: Binding -> URI Source # identifiedValues :: [Binding] Source # reidentify :: URI -> Identified URI Binding Source # | |
Identifiable URI ActionNamespace Source # | |
Defined in SAML2.Core.Identifiers Methods identifier :: ActionNamespace -> URI Source # identifiedValues :: [ActionNamespace] Source # reidentify :: URI -> Identified URI ActionNamespace Source # | |
Identifiable URI AttributeNameFormat Source # | |
Defined in SAML2.Core.Identifiers Methods identifier :: AttributeNameFormat -> URI Source # identifiedValues :: [AttributeNameFormat] Source # reidentify :: URI -> Identified URI AttributeNameFormat Source # | |
Identifiable URI Consent Source # | |
Defined in SAML2.Core.Identifiers Methods identifier :: Consent -> URI Source # identifiedValues :: [Consent] Source # reidentify :: URI -> Identified URI Consent Source # | |
Identifiable URI NameIDFormat Source # | |
Defined in SAML2.Core.Identifiers Methods identifier :: NameIDFormat -> URI Source # identifiedValues :: [NameIDFormat] Source # reidentify :: URI -> Identified URI NameIDFormat Source # | |
Identifiable URI StatusCode1 Source # | |
Defined in SAML2.Core.Protocols Methods identifier :: StatusCode1 -> URI Source # identifiedValues :: [StatusCode1] Source # reidentify :: URI -> Identified URI StatusCode1 Source # | |
Identifiable URI StatusCode2 Source # | |
Defined in SAML2.Core.Protocols Methods identifier :: StatusCode2 -> URI Source # identifiedValues :: [StatusCode2] Source # reidentify :: URI -> Identified URI StatusCode2 Source # | |
Identifiable URI ConfirmationMethod Source # | |
Defined in SAML2.Profiles.ConfirmationMethod Methods identifier :: ConfirmationMethod -> URI Source # identifiedValues :: [ConfirmationMethod] Source # reidentify :: URI -> Identified URI ConfirmationMethod Source # | |
Identifiable URI CanonicalizationAlgorithm Source # | |
Defined in SAML2.XML.Canonical | |
Identifiable URI EncryptionAlgorithm Source # | |
Defined in SAML2.XML.Encryption Methods identifier :: EncryptionAlgorithm -> URI Source # identifiedValues :: [EncryptionAlgorithm] Source # reidentify :: URI -> Identified URI EncryptionAlgorithm Source # | |
Identifiable URI DigestAlgorithm Source # | |
Defined in SAML2.XML.Signature.Types Methods identifier :: DigestAlgorithm -> URI Source # identifiedValues :: [DigestAlgorithm] Source # reidentify :: URI -> Identified URI DigestAlgorithm Source # | |
Identifiable URI EncodingAlgorithm Source # | |
Defined in SAML2.XML.Signature.Types Methods identifier :: EncodingAlgorithm -> URI Source # identifiedValues :: [EncodingAlgorithm] Source # reidentify :: URI -> Identified URI EncodingAlgorithm Source # | |
Identifiable URI MACAlgorithm Source # | |
Defined in SAML2.XML.Signature.Types Methods identifier :: MACAlgorithm -> URI Source # identifiedValues :: [MACAlgorithm] Source # reidentify :: URI -> Identified URI MACAlgorithm Source # | |
Identifiable URI SignatureAlgorithm Source # | |
Defined in SAML2.XML.Signature.Types Methods identifier :: SignatureAlgorithm -> URI Source # identifiedValues :: [SignatureAlgorithm] Source # reidentify :: URI -> Identified URI SignatureAlgorithm Source # | |
Identifiable URI TransformAlgorithm Source # | |
Defined in SAML2.XML.Signature.Types Methods identifier :: TransformAlgorithm -> URI Source # identifiedValues :: [TransformAlgorithm] Source # reidentify :: URI -> Identified URI TransformAlgorithm Source # |
unidentify :: Identifiable b a => Identified b a -> b Source #
xpIdentified :: Identifiable b a => PU b -> PU (Identified b a) Source #
xpIdentifier :: Identifiable b a => PU b -> String -> PU a Source #
type IdentifiedURI = Identified URI Source #
samlToDoc :: XmlPickler a => a -> XmlTree Source #
samlToDocFirstChild :: XmlPickler a => a -> XmlTree Source #
From the input xml forest, take the first child of the first tree.
samlToXML :: XmlPickler a => a -> ByteString Source #
docToXMLWithoutRoot :: XmlTree -> ByteString Source #
see also docToXMLWithRoot
docToXMLWithRoot :: XmlTree -> ByteString Source #
docToXML
chops off the root element from the tree. docToXMLWithRoot
does not do
this. it may make sense to remove docToXMLWithoutRoot
, but since i don't understand this
code enough to be confident not to break anything, i'll just leave this extra function for
reference.
xmlToSAML :: XmlPickler a => ByteString -> Either String a Source #