C# Class Thinktecture.IdentityModel.SecurityTokenService.SimpleRestfulTokenServiceBase

Base class for a simple security token service
Inheritance: ISimpleRestfulTokenServiceContract
ファイルを表示 Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
Issue ( string realm ) : System.Xml.Linq.XElement

Issues a token for the specified realm.

Protected Methods

Method Description
GetEncryptingCredentials ( string realm ) : System.IdentityModel.Tokens.EncryptingCredentials

Retrieves the encrypting credentials.

GetIssuerName ( ) : Uri

Retrieves the name of the token issuer.

GetLifetime ( string realm, string userName ) : Lifetime

Gets the lifetime.

GetOutputClaimsIdentity ( string realm, string username ) : IClaimsIdentity

Creates the output claims identity.

GetSigningCredentials ( ) : System.IdentityModel.Tokens.SigningCredentials

Retrieves the signing credentials.

Method Details

GetEncryptingCredentials() protected abstract method

Retrieves the encrypting credentials.
protected abstract GetEncryptingCredentials ( string realm ) : System.IdentityModel.Tokens.EncryptingCredentials
realm string The realm.
return System.IdentityModel.Tokens.EncryptingCredentials

GetIssuerName() protected abstract method

Retrieves the name of the token issuer.
protected abstract GetIssuerName ( ) : Uri
return System.Uri

GetLifetime() protected method

Gets the lifetime.
protected GetLifetime ( string realm, string userName ) : Lifetime
realm string The realm.
userName string The username.
return Lifetime

GetOutputClaimsIdentity() protected abstract method

Creates the output claims identity.
protected abstract GetOutputClaimsIdentity ( string realm, string username ) : IClaimsIdentity
realm string The realm.
username string The username.
return IClaimsIdentity

GetSigningCredentials() protected abstract method

Retrieves the signing credentials.
protected abstract GetSigningCredentials ( ) : System.IdentityModel.Tokens.SigningCredentials
return System.IdentityModel.Tokens.SigningCredentials

Issue() public method

Issues a token for the specified realm.
public Issue ( string realm ) : System.Xml.Linq.XElement
realm string The realm name.
return System.Xml.Linq.XElement