Documentation
¶
Index ¶
- type Config
- type ServiceProvider
- func (sp *ServiceProvider) GetEntityID() string
- func (sp *ServiceProvider) LoginURL(id string) string
- func (sp *ServiceProvider) ValidatePostSignature(authRequest string) error
- func (sp *ServiceProvider) ValidateRedirectSignature(request, relayState, sigAlg, expectedSig string) error
- func (sp *ServiceProvider) VerifySignedElement(el *etree.Element) (*etree.Element, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceProvider ¶
type ServiceProvider struct {
ID string
Metadata *md.EntityDescriptorType
// contains filtered or unexported fields
}
func NewServiceProvider ¶
func (*ServiceProvider) GetEntityID ¶
func (sp *ServiceProvider) GetEntityID() string
func (*ServiceProvider) LoginURL ¶
func (sp *ServiceProvider) LoginURL(id string) string
func (*ServiceProvider) ValidatePostSignature ¶
func (sp *ServiceProvider) ValidatePostSignature(authRequest string) error
func (*ServiceProvider) ValidateRedirectSignature ¶
func (sp *ServiceProvider) ValidateRedirectSignature(request, relayState, sigAlg, expectedSig string) error
func (*ServiceProvider) VerifySignedElement ¶ added in v0.4.2
VerifySignedElement verifies the enveloped signature of el against the signing certificates in this service provider's metadata and returns the element as it was signed. It fails if the element carries no signature or the metadata holds no signing certificate.