Show / Hide Table of Contents

Class SamlClaimFactory

Creates claims from SAML assertions and vice versa.

Inheritance
System.Object
AbstractSamlClaimFactory
SamlClaimFactory
Implements
ISamlClaimFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.Claims
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SamlClaimFactory : AbstractSamlClaimFactory, ISamlClaimFactory

Methods

CreateClaims(String, String, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

Declaration
public override IList<Claim> CreateClaims(string partnerName, string userID, IList<SamlAttribute> attributes)
Parameters
Type Name Description
System.String partnerName

The partner provider name.

System.String userID

The SAML user ID.

System.Collections.Generic.IList<SamlAttribute> attributes

The SAML attributes.

Returns
Type Description
System.Collections.Generic.IList<System.Security.Claims.Claim>

The claims.

Overrides
AbstractSamlClaimFactory.CreateClaims(String, String, IList<SamlAttribute>)

CreateSamlAttributes(String, ClaimsPrincipal)

Creates the SAML attributes from claims.

Declaration
public override IList<SamlAttribute> CreateSamlAttributes(string partnerName, ClaimsPrincipal claimsPrincipal)
Parameters
Type Name Description
System.String partnerName

The partner provider name.

System.Security.Claims.ClaimsPrincipal claimsPrincipal

The claims principal.

Returns
Type Description
System.Collections.Generic.IList<SamlAttribute>

The SAML attributes.

Overrides
AbstractSamlClaimFactory.CreateSamlAttributes(String, ClaimsPrincipal)

CreateSamlUserID(String, ClaimsPrincipal)

Creates the SAML user ID from claims.

Declaration
public override string CreateSamlUserID(string partnerName, ClaimsPrincipal claimsPrincipal)
Parameters
Type Name Description
System.String partnerName

The partner provider name.

System.Security.Claims.ClaimsPrincipal claimsPrincipal

The claims principal.

Returns
Type Description
System.String

The SAML user ID.

Overrides
AbstractSamlClaimFactory.CreateSamlUserID(String, ClaimsPrincipal)

Implements

ISamlClaimFactory
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.