C# 클래스 Thinktecture.IdentityModel.Tokens.AccessSecurityTokenHandler

SecurityTokenHandler for AccessSecurityToken
상속: System.IdentityModel.Tokens.SecurityTokenHandler
파일 보기 프로젝트 열기: IdentityModel/Thinktecture.IdentityModel.v1 1 사용 예제들

공개 메소드들

메소드 설명
CanReadToken ( XmlReader reader ) : bool

Determines whether this instance can read a AccessSecurityToken.

CreateToken ( System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor ) : System.IdentityModel.Tokens.SecurityToken

Creates the token.

GetTokenTypeIdentifiers ( ) : string[]

Gets the token type identifiers.

ReadToken ( XmlReader reader ) : System.IdentityModel.Tokens.SecurityToken

Reads the token.

ValidateToken ( System.IdentityModel.Tokens.SecurityToken token ) : ClaimsIdentityCollection

Validates the token.

WriteToken ( XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token ) : void

Writes the token.

보호된 메소드들

메소드 설명
CreateClaims ( AccessSecurityToken token, string issuer ) : ClaimsIdentityCollection

Creates the claims.

GetIssuerThumbprint ( System.Security.Cryptography.Xml.SignedXml signedXml ) : string

Gets the issuer thumbprint.

ReadTokenValues ( System.Xml.Linq.XElement xml, X509Certificate2 issuerCertificate ) : AccessSecurityToken

Reads the token values.

SignToken ( System.Xml.Linq.XElement tokenXml, X509Certificate2 signer ) : System.Xml.Linq.XElement

Signs the token.

VerifySignature ( System.Xml.Linq.XElement xml ) : X509Certificate2

Verifies the signature.

비공개 메소드들

메소드 설명
CheckExpiration ( AccessSecurityToken accToken ) : void

Checks the expiration.

ValidateIssuer ( X509Certificate2 issuerCertificate ) : string

메소드 상세

CanReadToken() 공개 메소드

Determines whether this instance can read a AccessSecurityToken.
public CanReadToken ( XmlReader reader ) : bool
reader XmlReader The reader.
리턴 bool

CreateClaims() 보호된 메소드

Creates the claims.
protected CreateClaims ( AccessSecurityToken token, string issuer ) : ClaimsIdentityCollection
token AccessSecurityToken The token.
issuer string The issuer.
리턴 ClaimsIdentityCollection

CreateToken() 공개 메소드

Creates the token.
public CreateToken ( System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor ) : System.IdentityModel.Tokens.SecurityToken
tokenDescriptor System.IdentityModel.Tokens.SecurityTokenDescriptor The token descriptor.
리턴 System.IdentityModel.Tokens.SecurityToken

GetIssuerThumbprint() 보호된 메소드

Gets the issuer thumbprint.
protected GetIssuerThumbprint ( System.Security.Cryptography.Xml.SignedXml signedXml ) : string
signedXml System.Security.Cryptography.Xml.SignedXml The signed XML.
리턴 string

GetTokenTypeIdentifiers() 공개 메소드

Gets the token type identifiers.
public GetTokenTypeIdentifiers ( ) : string[]
리턴 string[]

ReadToken() 공개 메소드

Reads the token.
public ReadToken ( XmlReader reader ) : System.IdentityModel.Tokens.SecurityToken
reader XmlReader The XML reader.
리턴 System.IdentityModel.Tokens.SecurityToken

ReadTokenValues() 보호된 메소드

Reads the token values.
protected ReadTokenValues ( System.Xml.Linq.XElement xml, X509Certificate2 issuerCertificate ) : AccessSecurityToken
xml System.Xml.Linq.XElement The XML.
issuerCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The issuer certificate.
리턴 AccessSecurityToken

SignToken() 보호된 메소드

Signs the token.
protected SignToken ( System.Xml.Linq.XElement tokenXml, X509Certificate2 signer ) : System.Xml.Linq.XElement
tokenXml System.Xml.Linq.XElement The token XML.
signer System.Security.Cryptography.X509Certificates.X509Certificate2 The signer.
리턴 System.Xml.Linq.XElement

ValidateToken() 공개 메소드

Validates the token.
public ValidateToken ( System.IdentityModel.Tokens.SecurityToken token ) : ClaimsIdentityCollection
token System.IdentityModel.Tokens.SecurityToken The token.
리턴 ClaimsIdentityCollection

VerifySignature() 보호된 메소드

Verifies the signature.
protected VerifySignature ( System.Xml.Linq.XElement xml ) : X509Certificate2
xml System.Xml.Linq.XElement The XML.
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

WriteToken() 공개 메소드

Writes the token.
public WriteToken ( XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token ) : void
writer System.Xml.XmlWriter The writer.
token System.IdentityModel.Tokens.SecurityToken The token.
리턴 void