MCPcopy Create free account
hub / github.com/crewjam/saml / UnmarshalXML

Method UnmarshalXML

schema.go:932–945  ·  view source on GitHub ↗

UnmarshalXML implements xml.Unmarshaler

(d *xml.Decoder, start xml.StartElement)

Source from the content-addressed store, hash-verified

930
931// UnmarshalXML implements xml.Unmarshaler
932func (s *SubjectConfirmationData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
933 type Alias SubjectConfirmationData
934 aux := &struct {
935 NotOnOrAfter RelaxedTime `xml:",attr"`
936 *Alias
937 }{
938 Alias: (*Alias)(s),
939 }
940 if err := d.DecodeElement(&aux, &start); err != nil {
941 return err
942 }
943 s.NotOnOrAfter = time.Time(aux.NotOnOrAfter)
944 return nil
945}
946
947// Conditions represents the SAML element Conditions.
948//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected