Package xml
(v1.10.1)
[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 `xml:"CertificateChain"`
}
type CipherData
type CipherData struct {
CipherValue Bytes `xml:"CipherValue"`
}
type ContentHeader struct {
WrmHeader WrmHeader `xml:"WRMHEADER"`
}
type CustomAttributes
type CustomAttributes struct {
ContentId string `xml:"CONTENTID"`
}
type Data
type Data struct {
CertificateChains CertificateChains `xml:"CertificateChains"`
Features Features `xml:"Features"`
}
type EncryptedData
type EncryptedData struct {
EncryptionMethod EncryptionMethod `xml:"EncryptionMethod"`
KeyInfo EncryptedDataInfo `xml:"KeyInfo"`
CipherData CipherData `xml:"CipherData"`
XmlNs string `xml:"xmlns,attr"`
Type string `xml:"Type,attr"`
}
type EncryptedDataInfo
type EncryptedDataInfo struct {
EncryptedKey EncryptedKey `xml:"EncryptedKey"`
XmlNs string `xml:"xmlns,attr"`
}
type EncryptedKey
type EncryptedKey struct {
EncryptionMethod EncryptionMethod `xml:"EncryptionMethod"`
KeyInfo EncryptedKeyInfo `xml:"KeyInfo"`
CipherData CipherData `xml:"CipherData"`
XmlNs string `xml:"xmlns,attr"`
}
type EncryptedKeyInfo
type EncryptedKeyInfo struct {
KeyName string `xml:"KeyName"`
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 `xml:"Feature"`
}
type InnerChallenge
type InnerChallenge struct {
La *La `xml:"LA"`
Signature Signature `xml:"Signature"`
XmlNs string `xml:"xmlns,attr"`
}
type La
type La struct {
Version string `xml:"Version"`
ContentHeader ContentHeader `xml:"ContentHeader"`
LicenseNonce Bytes `xml:"LicenseNonce"`
ClientTime int `xml:"ClientTime"`
EncryptedData EncryptedData `xml:"EncryptedData"`
XMLName xml.Name `xml:"LA"`
XmlNs string `xml:"xmlns,attr"`
Id string `xml:"Id,attr"`
}
type OuterChallenge
type OuterChallenge struct {
Challenge InnerChallenge `xml:"Challenge"`
}
type ProtectInfo
type ProtectInfo struct {
KeyLen int `xml:"KEYLEN"`
AlgId string `xml:"ALGID"`
}
type Reference
type Reference struct {
DigestValue Bytes `xml:"DigestValue"`
Uri string `xml:"URI,attr"`
}
type Signature
type Signature struct {
SignedInfo SignedInfo `xml:"SignedInfo"`
SignatureValue Bytes `xml:"SignatureValue"`
}
type SignedInfo
type SignedInfo struct {
Reference Reference `xml:"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 {
ProtectInfo ProtectInfo `xml:"PROTECTINFO"`
CustomAttributes *CustomAttributes `xml:"CUSTOMATTRIBUTES"`
Kid Bytes `xml:"KID"`
}