Package xml
(v1.9.6)
[up]
[repository]
Index
Variables
var (
Marshal = xml.Marshal
Unmarshal = xml.Unmarshal
)
Types
type AcquireLicense
type AcquireLicense struct {
Challenge OuterChallenge `xml:"challenge"`
XmlNs string `xml:"xmlns,attr"`
}
type Body
type Body struct {
AcquireLicense *AcquireLicense
AcquireLicenseResponse *struct {
AcquireLicenseResult struct {
Response struct {
LicenseResponse struct {
Licenses struct {
License Bytes
}
}
}
}
}
Fault *struct {
Fault string `xml:"faultstring"`
}
}
type Bytes
type Bytes []byte
Methods
func (b Bytes) MarshalText() ([]byte, error)
func (b *Bytes) UnmarshalText(data []byte) error
type CertificateChains
type CertificateChains struct {
CertificateChain Bytes
}
type CipherData
type CipherData struct {
CipherValue Bytes
}
type ContentHeader struct {
WrmHeader WrmHeader `xml:"WRMHEADER"`
}
type CustomAttributes
type CustomAttributes struct {
ContentId string `xml:"CONTENTID"`
}
type Data
type Data struct {
CertificateChains CertificateChains
Features Features
}
type EncryptedData
type EncryptedData struct {
CipherData CipherData
EncryptionMethod EncryptionMethod
KeyInfo EncryptedDataInfo
XmlNs string `xml:"xmlns,attr"`
Type string `xml:"Type,attr"`
}
type EncryptedDataInfo
type EncryptedDataInfo struct {
EncryptedKey EncryptedKey
XmlNs string `xml:"xmlns,attr"`
}
type EncryptedKey
type EncryptedKey struct {
CipherData CipherData
EncryptionMethod EncryptionMethod
KeyInfo EncryptedKeyInfo
XmlNs string `xml:"xmlns,attr"`
}
type EncryptedKeyInfo
type EncryptedKeyInfo struct {
KeyName string
XmlNs string `xml:"xmlns,attr"`
}
type EncryptionMethod
type EncryptionMethod struct {
Algorithm string `xml:"Algorithm,attr"`
}
type Envelope
type Envelope struct {
Body Body `xml:"soap:Body"`
Soap string `xml:"xmlns:soap,attr"`
XMLName xml.Name `xml:"soap:Envelope"`
}
type EnvelopeResponse
type EnvelopeResponse struct {
Body Body
}
type Feature
type Feature struct {
Name string `xml:",attr"`
}
type Features
type Features struct {
Feature Feature
}
type InnerChallenge
type InnerChallenge struct {
La *La
Signature Signature
XmlNs string `xml:"xmlns,attr"`
}
type La
type La struct {
ClientTime int
ContentHeader ContentHeader
EncryptedData EncryptedData
LicenseNonce Bytes
Version string
XMLName xml.Name `xml:"LA"`
XmlNs string `xml:"xmlns,attr"`
Id string `xml:"Id,attr"`
}
type OuterChallenge
type OuterChallenge struct {
Challenge InnerChallenge
}
type ProtectInfo
type ProtectInfo struct {
AlgId string `xml:"ALGID"`
KeyLen int `xml:"KEYLEN"`
}
type Reference
type Reference struct {
DigestValue Bytes
Uri string `xml:"URI,attr"`
}
type Signature
type Signature struct {
SignatureValue Bytes
SignedInfo SignedInfo
}
type SignedInfo
type SignedInfo struct {
Reference Reference
XmlNs string `xml:"xmlns,attr"`
}
type WrmHeader struct {
Data WrmHeaderData `xml:"DATA"`
XmlNs string `xml:"xmlns,attr"`
Version string `xml:"version,attr"`
}
type WrmHeaderData struct {
CustomAttributes *CustomAttributes `xml:"CUSTOMATTRIBUTES"`
Kid Bytes `xml:"KID"`
ProtectInfo ProtectInfo `xml:"PROTECTINFO"`
}