View Source hund_xml (hund v0.1.1)

Summary

Types

-type xml_thing() :: #xmlDocument{}.

Functions

Link to this function

build_nsinfo(XmlNamespace, XmlElement)

View Source
-spec build_nsinfo(#xmlNamespace{}, #xmlElement{}) -> #xmlElement{}.
Link to this function

decode_authn_request(Doc)

View Source
-spec decode_authn_request(Doc :: string() | #xmlElement{}) ->
                        {ok, #saml_authnreq{}} |
                        {error, bad_issuer} |
                        {error, missing_consumer_location} |
                        {error, term()}.
Link to this function

decode_logout_request(Doc)

View Source
-spec decode_logout_request(Doc :: string() | #xmlElement{}) ->
                         {ok, #saml_logout_request{}} | {error, bad_issuer} | {error, term()}.
Link to this function

decode_logout_response(Doc)

View Source
-spec decode_logout_response(Doc :: string() | #xmlElement{}) ->
                          {ok, #saml_logout_request{}} | {error, bad_issuer} | {error, term()}.
-spec decode_sp_metadata(Doc :: string() | #xmlElement{}) -> {ok, #saml_sp_metadata{}} | {error, term()}.
Link to this function

sign_xml(XmlDocument, Path, F)

View Source
-spec sign_xml(Xml :: #xmlDocument{}, Path :: string(), fun((xml_thing()) -> xml_thing())) ->
            {ok, #xmlDocument{}} | {error, term()}.
-spec to_xml(Data :: hund:saml_record()) -> #xmlElement{}.