xmlsecurity

package module
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

go-xmlsecurity

XML Security Toolkit

Documentation

Index

Constants

View Source
const (
	WsuNamespace    string = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
	WsseNamespace   string = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
	Wsse11Namespace string = "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
)

Variables

This section is empty.

Functions

func ConfigureResolver

func ConfigureResolver(resolver xml.XmlResolver)

func GetWsuId

func GetWsuId(resolver xml.XmlResolver, el *etree.Element) string

func NewBinarySecurityTokenNode

func NewBinarySecurityTokenNode(resolver xml.XmlResolver) (xml.XmlNode, error)

func NewReferenceNode

func NewReferenceNode(resolver xml.XmlResolver) (xml.XmlNode, error)

func NewSecurityTokenReferenceNode

func NewSecurityTokenReferenceNode(resolver xml.XmlResolver) (xml.XmlNode, error)

func SetWsuId

func SetWsuId(resolver xml.XmlResolver, el *etree.Element, id string)

Types

type BinarySecurityToken

type BinarySecurityToken interface {
	xml.XmlNode
	GetId() string
	SetId(id string)
	GetValueType() string
	SetValueType(valueType string)
	GetEncodingType() string
	SetEncodingType(encodingType string)
	GetValue() string
	SetValue(value string)
}

func NewBinarySecurityToken

func NewBinarySecurityToken(resolver xml.XmlResolver) (BinarySecurityToken, error)

type Reference

type Reference interface {
	xml.XmlNode
	GetUri() string
	SetUri(uri string)
	GetValueType() string
	SetValueType(valueType string)
}

func NewReference

func NewReference(resolver xml.XmlResolver) (Reference, error)

type SecurityTokenReference

type SecurityTokenReference interface {
	xml.XmlNode
	GetId() string
	SetId(id string)
	GetUsage() string
	SetUsage(usage string)
	GetTokenType() string
	SetTokenType(tokenType string)
	GetContent() xml.XmlNode
	SetContent(content xml.XmlNode)
}

func NewSecurityTokenReference

func NewSecurityTokenReference(resolver xml.XmlResolver) (SecurityTokenReference, error)

Jump to

Keyboard shortcuts

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