Class PartnerServiceProviderConfiguration
The partner service provider configuration specifies the configuration for the partner service provider.
Inheritance
Inherited Members
Namespace: ComponentSpace.SAML2.Configuration
Assembly: ComponentSpace.Saml2.dll
Syntax
public class PartnerServiceProviderConfiguration : PartnerProviderConfiguration
  Constructors
PartnerServiceProviderConfiguration()
Constructs a partner service provider configuration.
Declaration
public PartnerServiceProviderConfiguration()
  PartnerServiceProviderConfiguration(XmlElement)
Constructs a partner service provider configuration from XML.
Declaration
public PartnerServiceProviderConfiguration(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The partner service provider configuration XML.  | 
      
Properties
AssertionConsumerServiceUrl
Gets or sets the partner service provider's assertion consumer service URL.
Declaration
public string AssertionConsumerServiceUrl { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | The partner service provider's assertion consumer service URL.  | 
      
AssertionLifeTime
Gets or sets the time span for which SAML assertions will be valid.
The default time span is 3 minutes.
Declaration
public TimeSpan AssertionLifeTime { get; set; }
  Property Value
| Type | Description | 
|---|---|
| TimeSpan | The time span for which SAML assertions will be valid.  | 
      
EncryptAssertion
Gets or sets the flag indicating whether to encrypt SAML assertions.
Declaration
public bool EncryptAssertion { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | The flag indicating whether to encrypt SAML assertions.  | 
      
RelayState
Gets or sets the relay state sent during IdP-initiated SSO.
Declaration
public string RelayState { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | The relay state.  | 
      
SignAssertion
Gets or sets the flag indicating whether to sign SAML assertions.
The default is true.
Declaration
public bool SignAssertion { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | The flag indicating whether to sign SAML assertions.  | 
      
SignSAMLResponse
Gets or sets the flag indicating whether to sign SAML responses.
Declaration
public bool SignSAMLResponse { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | The flag indicating whether to sign SAML responses.  | 
      
WantAuthnRequestSigned
Gets or sets the flag indicating whether authn requests should be signed.
The default is true.
Declaration
public bool WantAuthnRequestSigned { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | The flag indicating whether authn requests should be signed.  | 
      
Methods
ToXml(XmlElement)
Serializes the partner service provider configuration to XML.
Declaration
public override void ToXml(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The XML element.  |