xmlsecurity

package module
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: GPL-3.0 Imports: 6 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 ConfigureContext

func ConfigureContext(context xml.Context)

func GetWsuId

func GetWsuId(context xml.Context, el *etree.Element) string

func NewBinarySecurityTokenNode

func NewBinarySecurityTokenNode(context xml.Context) (xml.Node, error)

func NewReferenceNode

func NewReferenceNode(context xml.Context) (xml.Node, error)

func NewSecurityTokenReferenceNode

func NewSecurityTokenReferenceNode(context xml.Context) (xml.Node, error)

func SetWsuId

func SetWsuId(context xml.Context, el *etree.Element, id string)

Types

type BinarySecurityToken

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

func NewBinarySecurityToken

func NewBinarySecurityToken(context xml.Context) (BinarySecurityToken, error)

type Reference

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

func NewReference

func NewReference(context xml.Context) (Reference, error)

type SecurityTokenReference

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

func NewSecurityTokenReference

func NewSecurityTokenReference(context xml.Context) (SecurityTokenReference, error)

type X509CertificateProvider

type X509CertificateProvider interface {
	GetX509Certificate(context xml.Context) (*x509.Certificate, error)
}

Jump to

Keyboard shortcuts

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