Show / Hide Table of Contents

Class AbstractSamlClaimFactory

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 abstract class AbstractSamlClaimFactory : ISamlClaimFactory

Methods

CreateClaims(String, String, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

Declaration
public virtual 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.

CreateSamlAttributes(String, ClaimsPrincipal)

Creates the SAML attributes from claims.

Declaration
public virtual 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.

CreateSamlUserID(String, ClaimsPrincipal)

Creates the SAML user ID from claims.

Declaration
public virtual 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.

Implements

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