xml

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncodingDeflate = "urn:oasis:names:tc:SAML:2.0:bindings:URL-Encoding:DEFLATE"
)

Variables

This section is empty.

Functions

func DecodeAttributeQuery

func DecodeAttributeQuery(request string) (*samlp.AttributeQueryType, error)

func DecodeAuthNRequest

func DecodeAuthNRequest(encoding string, message string) (*samlp.AuthnRequestType, error)

func DecodeLogoutRequest

func DecodeLogoutRequest(encoding string, message string) (*samlp.LogoutRequestType, error)

func DecodeResponse added in v0.0.3

func DecodeResponse(encoding string, b64 bool, message string) (*samlp.ResponseType, error)

func DecodeSignature

func DecodeSignature(encoding string, b64 bool, message string) (*xml_dsig.SignatureType, error)

func DeflateAndBase64

func DeflateAndBase64(data []byte) ([]byte, error)

func GetCertsFromKeyDescriptors

func GetCertsFromKeyDescriptors(keyDescs []md.KeyDescriptorType) []string

func InflateAndDecode added in v0.3.1

func InflateAndDecode(encoding string, b64 bool, message string) (_ []byte, err error)

func Marshal

func Marshal(data interface{}) ([]byte, error)

func ParseMetadataXmlIntoStruct

func ParseMetadataXmlIntoStruct(xmlData []byte) (*md.EntityDescriptorType, error)

func ReadMetadataFromURL

func ReadMetadataFromURL(client *http.Client, url string) ([]byte, error)

func Write

func Write(w http.ResponseWriter, body []byte) error

func WriteXMLMarshalled

func WriteXMLMarshalled(w http.ResponseWriter, body interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL