xml

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 4 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, message string) (*samlp.ResponseType, error)

func DecodeSignature

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

func DeflateAndBase64

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

func GetCertsFromKeyDescriptors

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

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