Documentation ¶
Index ¶
- type Action
- type Address
- type AlgorithmSuite
- type AlgorithmSuitePolicy
- type All
- type AppliesTo
- type Assertion
- type Attribute
- type AttributeStatement
- type AudienceRestrictionCondition
- type AuthenticationStatement
- type Binding
- type BindingOperation
- type BindingOperationIO
- type BindingOperationOperation
- type Body
- type Conditions
- type Definitions
- type DefinitionsBinding
- type EndorsingSupportingTokens
- type EndorsingSupportingTokensPolicy
- type Endpoint
- type EndpointReference
- type ExactlyOne
- type HTTPSToken
- type Header
- type Identity
- type Import
- type IssuedToken
- type IssuedTokenPolicy
- type KerberosToken
- type KerberosTokenPolicy
- type KeyIdentifier
- type KeyInfo
- type KeyValueToken
- type Layout
- type LayoutPolicy
- type Lifetime
- type Message
- type Method
- type MexDocument
- type NameIdentifier
- type NegotiateAuthentication
- type Operation
- type OperationIO
- type OperationIOBody
- type Part
- type Policy
- type PolicyReference
- type Port
- type PortEndpointReference
- type PortType
- type RSAToken
- type Reference
- type RequestSecurityTokenResponse
- type RequestSecurityTokenResponseCollection
- type RequestSecurityTokenTemplate
- type RequestedAttachedReference
- type RequestedSecurityToken
- type RequestedUnattachedReference
- type SAMLDefinitions
- type Schema
- type Security
- type SecurityTokenReference
- type Service
- type Signature
- type SignedEncryptedSupportingTokens
- type SignedInfo
- type SignedParts
- type SignedPartsHeader
- type SignedSupportingTokens
- type Subject
- type SubjectConfirmation
- type SupportingTokensPolicy
- type Text
- type Timestamp
- type Transforms
- type TransportBinding
- type TransportBindingPolicy
- type TransportToken
- type TransportTokenPolicy
- type Trust10
- type Trust10Policy
- type Types
- type UsernameToken
- type UsernameTokenPolicy
- type Version
- type WSS11
- type WSSUsernameToken10
- type WSTrust13
- type WSTrust13Policy
- type WSUTimestamp
- type Wss11Policy
- type X509Data
- type X509Token
- type X509TokenPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlgorithmSuite ¶
type AlgorithmSuite struct { Text string `xml:",chardata"` Policy AlgorithmSuitePolicy `xml:"Policy"` }
type AlgorithmSuitePolicy ¶
type All ¶
type All struct { Text string `xml:",chardata"` NegotiateAuthentication NegotiateAuthentication `xml:"NegotiateAuthentication"` TransportBinding TransportBinding `xml:"TransportBinding"` UsingAddressing Text `xml:"UsingAddressing"` EndorsingSupportingTokens EndorsingSupportingTokens `xml:"EndorsingSupportingTokens"` WSS11 WSS11 `xml:"Wss11"` Trust10 Trust10 `xml:"Trust10"` SignedSupportingTokens SignedSupportingTokens `xml:"SignedSupportingTokens"` Trust13 WSTrust13 `xml:"Trust13"` SignedEncryptedSupportingTokens SignedEncryptedSupportingTokens `xml:"SignedEncryptedSupportingTokens"` }
type AppliesTo ¶
type AppliesTo struct { Text string `xml:",chardata"` Wsp string `xml:"wsp,attr"` EndpointReference EndpointReference `xml:"EndpointReference"` }
type Assertion ¶
type Assertion struct { XMLName xml.Name // Normally its `xml:"Assertion"`, but I think they want to capture the xmlns Text string `xml:",chardata"` MajorVersion string `xml:"MajorVersion,attr"` MinorVersion string `xml:"MinorVersion,attr"` AssertionID string `xml:"AssertionID,attr"` Issuer string `xml:"Issuer,attr"` IssueInstant string `xml:"IssueInstant,attr"` Saml string `xml:"saml,attr"` Conditions Conditions `xml:"Conditions"` AttributeStatement AttributeStatement `xml:"AttributeStatement"` AuthenticationStatement AuthenticationStatement `xml:"AuthenticationStatement"` Signature Signature `xml:"Signature"` }
type AttributeStatement ¶
type AuthenticationStatement ¶
type Binding ¶
type Binding struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` PolicyReference PolicyReference `xml:"PolicyReference"` Binding DefinitionsBinding `xml:"binding"` Operation BindingOperation `xml:"operation"` }
type BindingOperation ¶
type BindingOperation struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Operation BindingOperationOperation `xml:"operation"` Input BindingOperationIO `xml:"input"` Output BindingOperationIO `xml:"output"` }
type BindingOperationIO ¶
type BindingOperationIO struct { Text string `xml:",chardata"` Body OperationIOBody `xml:"body"` }
type Body ¶
type Body struct { Text string `xml:",chardata"` RequestSecurityTokenResponseCollection RequestSecurityTokenResponseCollection `xml:"RequestSecurityTokenResponseCollection"` }
type Conditions ¶
type Conditions struct { Text string `xml:",chardata"` NotBefore string `xml:"NotBefore,attr"` NotOnOrAfter string `xml:"NotOnOrAfter,attr"` AudienceRestrictionCondition AudienceRestrictionCondition `xml:"AudienceRestrictionCondition"` }
type Definitions ¶
type Definitions struct { XMLName xml.Name `xml:"definitions"` Text string `xml:",chardata"` Name string `xml:"name,attr"` TargetNamespace string `xml:"targetNamespace,attr"` WSDL string `xml:"wsdl,attr"` XSD string `xml:"xsd,attr"` T string `xml:"t,attr"` SOAPENC string `xml:"soapenc,attr"` SOAP string `xml:"soap,attr"` TNS string `xml:"tns,attr"` MSC string `xml:"msc,attr"` WSAM string `xml:"wsam,attr"` SOAP12 string `xml:"soap12,attr"` WSA10 string `xml:"wsa10,attr"` WSA string `xml:"wsa,attr"` WSAW string `xml:"wsaw,attr"` WSX string `xml:"wsx,attr"` WSAP string `xml:"wsap,attr"` WSU string `xml:"wsu,attr"` Trust string `xml:"trust,attr"` WSP string `xml:"wsp,attr"` Policy []Policy `xml:"Policy"` Types Types `xml:"types"` Message []Message `xml:"message"` PortType []PortType `xml:"portType"` Binding []Binding `xml:"binding"` Service Service `xml:"service"` }
type DefinitionsBinding ¶
type EndorsingSupportingTokens ¶
type EndorsingSupportingTokens struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy EndorsingSupportingTokensPolicy `xml:"Policy"` }
type EndorsingSupportingTokensPolicy ¶
type EndorsingSupportingTokensPolicy struct { Text string `xml:",chardata"` X509Token X509Token `xml:"X509Token"` RSAToken RSAToken `xml:"RsaToken"` SignedParts SignedParts `xml:"SignedParts"` KerberosToken KerberosToken `xml:"KerberosToken"` IssuedToken IssuedToken `xml:"IssuedToken"` KeyValueToken KeyValueToken `xml:"KeyValueToken"` }
type Endpoint ¶
type Endpoint struct { // Version is the version of the endpoint. Version Version // URL is the URL of the endpoint. URL string }
Endpoint represents a WSTrust endpoint.
func (*Endpoint) BuildTokenRequestMessageUsernamePassword ¶
type EndpointReference ¶
type ExactlyOne ¶
type HTTPSToken ¶
type IssuedToken ¶
type IssuedToken struct { Text string `xml:",chardata"` IncludeToken string `xml:"IncludeToken,attr"` RequestSecurityTokenTemplate RequestSecurityTokenTemplate `xml:"RequestSecurityTokenTemplate"` Policy IssuedTokenPolicy `xml:"Policy"` }
type IssuedTokenPolicy ¶
type KerberosToken ¶
type KerberosToken struct { Text string `xml:",chardata"` IncludeToken string `xml:"IncludeToken,attr"` Policy KerberosTokenPolicy `xml:"Policy"` }
type KerberosTokenPolicy ¶
type KeyIdentifier ¶
type KeyValueToken ¶
type Layout ¶
type Layout struct { Text string `xml:",chardata"` Policy LayoutPolicy `xml:"Policy"` }
type LayoutPolicy ¶
type Lifetime ¶
type Lifetime struct { Text string `xml:",chardata"` Created WSUTimestamp `xml:"Created"` Expires WSUTimestamp `xml:"Expires"` }
type MexDocument ¶
type MexDocument struct { UsernamePasswordEndpoint Endpoint WindowsTransportEndpoint Endpoint // contains filtered or unexported fields }
func NewFromDef ¶
func NewFromDef(defs Definitions) (MexDocument, error)
NewFromDef creates a new MexDocument.
type NameIdentifier ¶
type NegotiateAuthentication ¶
type Operation ¶
type Operation struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Input OperationIO `xml:"input"` Output OperationIO `xml:"output"` }
type OperationIO ¶
type OperationIO struct { Text string `xml:",chardata"` Action string `xml:"Action,attr"` Message string `xml:"message,attr"` Body OperationIOBody `xml:"body"` }
type OperationIOBody ¶
type Policy ¶
type Policy struct { Text string `xml:",chardata"` ID string `xml:"Id,attr"` ExactlyOne ExactlyOne `xml:"ExactlyOne"` }
type PolicyReference ¶
type Port ¶
type Port struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Binding string `xml:"binding,attr"` Address Address `xml:"address"` EndpointReference PortEndpointReference `xml:"EndpointReference"` }
type PortEndpointReference ¶
type Reference ¶
type Reference struct { Text string `xml:",chardata"` URI string `xml:"URI,attr"` Transforms Transforms `xml:"Transforms"` DigestMethod Method `xml:"DigestMethod"` DigestValue Text `xml:"DigestValue"` }
type RequestSecurityTokenResponse ¶
type RequestSecurityTokenResponse struct { Text string `xml:",chardata"` Lifetime Lifetime `xml:"Lifetime"` AppliesTo AppliesTo `xml:"AppliesTo"` RequestedSecurityToken RequestedSecurityToken `xml:"RequestedSecurityToken"` RequestedAttachedReference RequestedAttachedReference `xml:"RequestedAttachedReference"` RequestedUnattachedReference RequestedUnattachedReference `xml:"RequestedUnattachedReference"` TokenType Text `xml:"TokenType"` RequestType Text `xml:"RequestType"` KeyType Text `xml:"KeyType"` }
type RequestSecurityTokenResponseCollection ¶
type RequestSecurityTokenResponseCollection struct { Text string `xml:",chardata"` Trust string `xml:"trust,attr"` RequestSecurityTokenResponse []RequestSecurityTokenResponse `xml:"RequestSecurityTokenResponse"` }
type RequestSecurityTokenTemplate ¶
type RequestSecurityTokenTemplate struct { Text string `xml:",chardata"` KeyType Text `xml:"KeyType"` EncryptWith Text `xml:"EncryptWith"` SignatureAlgorithm Text `xml:"SignatureAlgorithm"` CanonicalizationAlgorithm Text `xml:"CanonicalizationAlgorithm"` EncryptionAlgorithm Text `xml:"EncryptionAlgorithm"` KeySize Text `xml:"KeySize"` KeyWrapAlgorithm Text `xml:"KeyWrapAlgorithm"` }
type RequestedAttachedReference ¶
type RequestedAttachedReference struct { Text string `xml:",chardata"` SecurityTokenReference SecurityTokenReference `xml:"SecurityTokenReference"` }
type RequestedSecurityToken ¶
type RequestedUnattachedReference ¶
type RequestedUnattachedReference struct { Text string `xml:",chardata"` SecurityTokenReference SecurityTokenReference `xml:"SecurityTokenReference"` }
type SAMLDefinitions ¶
type SecurityTokenReference ¶
type SecurityTokenReference struct { Text string `xml:",chardata"` TokenType string `xml:"TokenType,attr"` O string `xml:"o,attr"` K string `xml:"k,attr"` KeyIdentifier KeyIdentifier `xml:"KeyIdentifier"` }
type Signature ¶
type Signature struct { Text string `xml:",chardata"` Ds string `xml:"ds,attr"` SignedInfo SignedInfo `xml:"SignedInfo"` SignatureValue Text `xml:"SignatureValue"` KeyInfo KeyInfo `xml:"KeyInfo"` }
type SignedEncryptedSupportingTokens ¶
type SignedEncryptedSupportingTokens struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy SupportingTokensPolicy `xml:"Policy"` }
type SignedInfo ¶
type SignedParts ¶
type SignedParts struct { Text string `xml:",chardata"` Header SignedPartsHeader `xml:"Header"` }
type SignedPartsHeader ¶
type SignedSupportingTokens ¶
type SignedSupportingTokens struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy SupportingTokensPolicy `xml:"Policy"` }
type Subject ¶
type Subject struct { Text string `xml:",chardata"` NameIdentifier NameIdentifier `xml:"NameIdentifier"` SubjectConfirmation SubjectConfirmation `xml:"SubjectConfirmation"` }
type SubjectConfirmation ¶
type SupportingTokensPolicy ¶
type SupportingTokensPolicy struct { Text string `xml:",chardata"` UsernameToken UsernameToken `xml:"UsernameToken"` }
type Transforms ¶
type TransportBinding ¶
type TransportBinding struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy TransportBindingPolicy `xml:"Policy"` }
type TransportBindingPolicy ¶
type TransportBindingPolicy struct { Text string `xml:",chardata"` TransportToken TransportToken `xml:"TransportToken"` AlgorithmSuite AlgorithmSuite `xml:"AlgorithmSuite"` Layout Layout `xml:"Layout"` IncludeTimestamp Text `xml:"IncludeTimestamp"` }
type TransportToken ¶
type TransportToken struct { Text string `xml:",chardata"` Policy TransportTokenPolicy `xml:"Policy"` }
type TransportTokenPolicy ¶
type TransportTokenPolicy struct { Text string `xml:",chardata"` HTTPSToken HTTPSToken `xml:"HttpsToken"` }
type Trust10 ¶
type Trust10 struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy Trust10Policy `xml:"Policy"` }
type Trust10Policy ¶
type UsernameToken ¶
type UsernameToken struct { Text string `xml:",chardata"` IncludeToken string `xml:"IncludeToken,attr"` Policy UsernameTokenPolicy `xml:"Policy"` }
type UsernameTokenPolicy ¶
type UsernameTokenPolicy struct { Text string `xml:",chardata"` WSSUsernameToken10 WSSUsernameToken10 `xml:"WssUsernameToken10"` }
type WSS11 ¶
type WSS11 struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy Wss11Policy `xml:"Policy"` }
type WSSUsernameToken10 ¶
type WSTrust13 ¶
type WSTrust13 struct { Text string `xml:",chardata"` SP string `xml:"sp,attr"` Policy WSTrust13Policy `xml:"Policy"` }
type WSTrust13Policy ¶
type WSUTimestamp ¶
type Wss11Policy ¶
type X509Token ¶
type X509Token struct { Text string `xml:",chardata"` IncludeToken string `xml:"IncludeToken,attr"` Policy X509TokenPolicy `xml:"Policy"` }
type X509TokenPolicy ¶
Click to show internal directories.
Click to hide internal directories.