View Source hund_xml (hund v0.1.1)
Summary
Types
-type xml_thing() :: #xmlDocument{}.
Functions
-spec build_nsinfo(#xmlNamespace{}, #xmlElement{}) -> #xmlElement{}.
-spec decode_authn_request(Doc :: string() | #xmlElement{}) ->
{ok, #saml_authnreq{}} |
{error, bad_issuer} |
{error, missing_consumer_location} |
{error, term()}.
-spec decode_logout_request(Doc :: string() | #xmlElement{}) ->
{ok, #saml_logout_request{}} | {error, bad_issuer} | {error, term()}.
-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()}.
-spec to_xml(Data :: hund:saml_record()) -> #xmlElement{}.