Class CustomIssuerNameRegistry
Provides methods that return X.509 certificate name or Windows Authority name for provided claim issuer token.
Inheritance
System.Object
CustomIssuerNameRegistry
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class CustomIssuerNameRegistry : ConfigurationBasedIssuerNameRegistry
Remarks
This class alternates the base class behavior and tries to find the trusted issuer in the current node configuration, if trusted issuer is not found in the .config file. If trusted issuer is not found then registry returns certificate thumbprint as issuer name.
Constructors
CustomIssuerNameRegistry()
Initializes an empty instance.
Declaration
public CustomIssuerNameRegistry()
Methods
GetIssuerName(SecurityToken)
Returns friendly name for provided issuer's certificate or Null, if issuer is not trusted.
Declaration
public override string GetIssuerName(SecurityToken securityToken)
Parameters
Type | Name | Description |
---|---|---|
System.IdentityModel.Tokens.SecurityToken | securityToken | Issuer's System.IdentityModel.Tokens.X509SecurityToken with certificate. |
Returns
Type | Description |
---|---|
System.String | Name of the issuer or Null, if issuer is not trusted. |
LoadCustomConfiguration(XmlNodeList)
Loads the trusted issuers from configuration.
Declaration
public override void LoadCustomConfiguration(XmlNodeList customConfiguration)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlNodeList | customConfiguration | XML configuration which contains collection of trusted certificate issuers. |