C# 클래스 Thinktecture.IdentityModel.Extensions.SecurityTokensExtensions

Extension methods to convert tokens to string and claims
파일 보기 프로젝트 열기: IdentityModel/Thinktecture.IdentityModel.v1

공개 메소드들

메소드 설명
ToClaimsPrincipal ( this token, SecurityTokenHandlerCollection handler ) : IClaimsPrincipal

Converts a SecurityToken to an IClaimsPrincipal.

ToClaimsPrincipal ( this token, X509Certificate2 signingCertificate ) : IClaimsPrincipal

Converts a SecurityToken to an IClaimsPrincipal.

ToClaimsPrincipal ( this token, X509Certificate2 signingCertificate, string audienceUri ) : IClaimsPrincipal

Converts a SecurityToken to an IClaimsPrincipal.

ToClaimsPrincipal ( this token, string thumbprint ) : IClaimsPrincipal

Converts a SecurityToken to an IClaimsPrincipal.

ToSecurityToken ( this token ) : System.IdentityModel.Tokens.SecurityToken

Turns a supported generic XML security token to a security token.

ToSecurityToken ( this token, SecurityTokenHandlerCollection handler ) : System.IdentityModel.Tokens.SecurityToken

Turns a supported generic XML security token to a security token.

ToSecurityToken ( this token, X509Certificate2 decryptionCertificate ) : System.IdentityModel.Tokens.SecurityToken

Turns a supported generic XML security token to a security token.

ToTokenXmlString ( this token ) : string

Retrieves the XML from a GenericXmlSecurityToken

ToTokenXmlString ( this token, SecurityTokenHandlerCollection handler ) : string

Converts a supported token to an XML string.

비공개 메소드들

메소드 설명
CreateDefaultHandlerCollection ( this configuration ) : SecurityTokenHandlerCollection
CreateIssuerNameRegistry ( this certificate ) : System.IdentityModel.Tokens.IssuerNameRegistry
CreateSecurityTokenResolver ( this certificate ) : System.IdentityModel.Selectors.SecurityTokenResolver
CreateStandardConfiguration ( X509Certificate2 signingCertificate ) : System.IdentityModel.Tokens.SecurityTokenHandlerConfiguration
CreateStandardConfiguration ( string thumbprint ) : System.IdentityModel.Tokens.SecurityTokenHandlerConfiguration

메소드 상세

ToClaimsPrincipal() 공개 정적인 메소드

Converts a SecurityToken to an IClaimsPrincipal.
public static ToClaimsPrincipal ( this token, SecurityTokenHandlerCollection handler ) : IClaimsPrincipal
token this The token.
handler SecurityTokenHandlerCollection The handler.
리턴 IClaimsPrincipal

ToClaimsPrincipal() 공개 정적인 메소드

Converts a SecurityToken to an IClaimsPrincipal.
public static ToClaimsPrincipal ( this token, X509Certificate2 signingCertificate ) : IClaimsPrincipal
token this The token.
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The signing certificate.
리턴 IClaimsPrincipal

ToClaimsPrincipal() 공개 정적인 메소드

Converts a SecurityToken to an IClaimsPrincipal.
public static ToClaimsPrincipal ( this token, X509Certificate2 signingCertificate, string audienceUri ) : IClaimsPrincipal
token this The token.
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The signing certificate.
audienceUri string The audience URI.
리턴 IClaimsPrincipal

ToClaimsPrincipal() 공개 정적인 메소드

Converts a SecurityToken to an IClaimsPrincipal.
public static ToClaimsPrincipal ( this token, string thumbprint ) : IClaimsPrincipal
token this The token.
thumbprint string The signing certificate thumbprint
리턴 IClaimsPrincipal

ToSecurityToken() 공개 정적인 메소드

Turns a supported generic XML security token to a security token.
public static ToSecurityToken ( this token ) : System.IdentityModel.Tokens.SecurityToken
token this The generic XML security token.
리턴 System.IdentityModel.Tokens.SecurityToken

ToSecurityToken() 공개 정적인 메소드

Turns a supported generic XML security token to a security token.
public static ToSecurityToken ( this token, SecurityTokenHandlerCollection handler ) : System.IdentityModel.Tokens.SecurityToken
token this The generic XML security token.
handler SecurityTokenHandlerCollection The security token handler.
리턴 System.IdentityModel.Tokens.SecurityToken

ToSecurityToken() 공개 정적인 메소드

Turns a supported generic XML security token to a security token.
public static ToSecurityToken ( this token, X509Certificate2 decryptionCertificate ) : System.IdentityModel.Tokens.SecurityToken
token this The token.
decryptionCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The decryption certificate.
리턴 System.IdentityModel.Tokens.SecurityToken

ToTokenXmlString() 공개 정적인 메소드

Retrieves the XML from a GenericXmlSecurityToken
public static ToTokenXmlString ( this token ) : string
token this The token.
리턴 string

ToTokenXmlString() 공개 정적인 메소드

Converts a supported token to an XML string.
public static ToTokenXmlString ( this token, SecurityTokenHandlerCollection handler ) : string
token this The token.
handler SecurityTokenHandlerCollection The token handler.
리턴 string