Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Sustainsys.​Saml2.​WebSso.​Saml2Binding

Assembly: Sustainsys.Saml2

Inheritance: object → Saml2Binding

Abstract base for all Saml2Bindings that binds a message to a specific kind of transport.

Fields and Constants

public static readonly System.​Uri
HttpPostUri
Uri identifier of the HTTP-POST binding.
public static readonly System.​Uri
HttpRedirectUri
Uri identifier of the HTTP-Redirect binding.
public static readonly System.​Uri
HttpArtifactUri
Uri identifier of the HTTP-Artifact binding.
public static readonly System.​Uri
DiscoveryResponseUri
Uri identifier of the Discovery Response SAML extension.
public static readonly System.​Uri
SoapUri
Uri identifier of the SOAP binding.

Methods

public CommandResult
Bind​(Saml2P.​ISaml2Message message, ILoggerAdapter logger)
Binds a message to a http response.
Returns CommandResult.
message Message to bind.
logger Logger to log use, can be null.
public CommandResult
Bind​(TMessage message, ILoggerAdapter logger, System.​Action<​TMessage, System.​Xml.​Linq.​XDocument, Saml2BindingType> xmlCreatedNotification)
Binds a message to an http response.
Returns CommandResult.
message Message to bind
logger Logger to log use, can be null.
xmlCreatedNotification Notification to call for modification of XDocument, can be null.
public CommandResult
Bind​(Saml2P.​ISaml2Message message)
Binds a message to a http response.
Returns CommandResult.
message Message to bind.
public UnbindResult
Unbind​(HttpRequestData request, Configuration.​IOptions options)
Extracts a message out of the current HttpRequest.
Returns Extracted message.
request Current HttpRequest.
options Options, used to look up certificate information in bindings that validate signatures. If set to null, the returned result will have TrustLevel.None.
public static Saml2Binding
Get​(Saml2BindingType binding)
Get a cached binding instance that supports the requested type.
Returns A derived class instance that supports the requested binding.
binding Type of binding to get
public static Saml2Binding
Get​(HttpRequestData request)
Get a cached binding instance that can handle the current request.
Returns A derived class instance that supports the requested binding, or null if no binding supports the current request.
request Current HttpRequest
public static Saml2BindingType
UriToSaml2BindingType​(System.​Uri uri)
Gets the Saml2BindingType enum value for a Saml2Binding type uri, where the uri should be one specified in the standard.
Returns Binding type enum value.
uri Uri for the binding.
public static System.​Uri
Saml2BindingTypeToUri​(Saml2BindingType type)
Gets the Uri for a Saml2BindingType.
Returns Uri constant for the speicified Binding Type
type Saml2BindingType
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object