wsse

package module
v0.0.0-...-bb16df8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameTokenProfilePasswordDigest = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"

	SOAPMessageSecurityBase64Binary = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
)
View Source
const Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributedString

type AttributedString struct {
	ID xsd.String `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

AttributedString represents an element with arbitrary attributes

type BinarySecurityToken

type BinarySecurityToken struct {
	XMLName xml.Name `xml:"wsse:BinarySecurityToken"`

	NS string `xml:"xmlns:wsse,attr,omitempty"`

	ValueType xsd.AnyURI `xml:",attr,omitempty"`

	ID xsd.String `xml:",attr,omitempty"`

	EncodingType xsd.AnyURI `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

BinarySecurityToken defines the wsse:BinarySecurityToken element per Section 4.2

type Embedded

type Embedded struct {
	XMLName xml.Name `xml:"wsse:Embedded"`

	NS string `xml:"xmlns:wsse,attr,omitempty"`

	ValueType xsd.AnyURI `xml:",attr,omitempty"`

	Extra []interface{}
}

Embedded defines a security token embedded reference

type EncodedString

type EncodedString struct {
	ID xsd.String `xml:",attr,omitempty"`

	Type xsd.AnyURI `xml:",attr,omitempty"`

	EncodingType xsd.AnyURI `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

EncodedString is used for elements containing stringified binary data

type Nonce

type Nonce struct {
	XMLName xml.Name `xml:"wsse:Nonce"`

	ID xsd.String `xml:",attr,omitempty"`

	Type xsd.AnyURI `xml:",attr,omitempty"`

	EncodingType xsd.AnyURI `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

type Password

type Password struct {
	XMLName xml.Name `xml:"wsse:Password"`

	ID xsd.String `xml:",attr,omitempty"`

	Type xsd.AnyURI `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

type PasswordString

type PasswordString struct {
	ID xsd.String `xml:",attr,omitempty"`

	Type xsd.AnyURI `xml:",attr,omitempty"`

	Value string `xml:",chardata"`
}

PasswordString is used for password elements per Section 4.1

func (*PasswordString) UnmarshalText

func (o *PasswordString) UnmarshalText(text []byte) error

type Reference

type Reference struct {
	XMLName xml.Name `xml:"wsse:Reference"`

	NS string `xml:"xmlns:wsse,attr,omitempty"`

	URI xsd.AnyURI `xml:",attr,omitempty"`

	ValueType xsd.AnyURI `xml:",attr,omitempty"`
}

Reference defines a security token reference

type UsernameToken

type UsernameToken struct {
	XMLName xml.Name `xml:"wsse:UsernameToken"`

	NS string `xml:"xmlns:wsse,attr,omitempty"`

	ID xsd.String `xml:",attr,omitempty"`

	Username AttributedString `xml:"wsse:Username"`

	EncodingType xsd.AnyURI `xml:",attr,omitempty"`

	Extra []interface{}
}

UsernameToken defines the wsse:UsernameToken element per Section 4.1

Jump to

Keyboard shortcuts

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