C# 클래스 Sholo.Web.Security.Authentication.User.Provider.CacheUserAuthenticationTicketProvider

An IUserAuthenticationTicketProvider implementation that relies on the ASP.NET Caching model for ticket storage. Generally this implies that the ticket storage is maintained locally on the web server (either in memory or on disk). A limitation of this model is that it will not support clustered, load balanced, or round-robin style configurations.
상속: UserAuthenticationTicketProviderBase
파일 보기 프로젝트 열기: scottt732/SholoWebSecurity

공개 메소드들

메소드 설명
ContainsTicket ( string userAuthenticationTicketKey ) : bool

Indicates whether or not the ticket store contains the supplied userAuthenticationTicketKey

GetAllTicketKeys ( ) : IEnumerable

Retrieves all UserAuthenticationTicket keys in the ticket store that have not already expired.

GetAllTicketedUsers ( ) : IEnumerable

Retrieves a list of all users that have non-expired ServerAuthenticationTickets.

GetAllTickets ( ) : IEnumerable

Retrieves all tickets in the ticket store that have not already expired.

GetTicket ( string userAuthenticationTicketKey ) : UserAuthenticationTicket

Retrieve a UserAuthenticationTicket from the ticket store by it's ticket key

GetUserTicketKeys ( string username ) : IEnumerable

Retrieves all non-expired UserAuthenticationTicket keys in the ticket store associated with the username supplied.

GetUserTickets ( string username ) : IEnumerable

Retrieves all non-expired tickets in the ticket store associated with the username supplied.

Initialize ( string name, NameValueCollection config ) : void

Initializes the CacheUserAuthenticationTicketProvider module.

InsertTicket ( UserAuthenticationTicket ticket, System.DateTime expiration ) : void

Inserts a UserAuthenticationTicket to the ticket store with a corresponding ticket expiration date.

RemoveExpiredTickets ( ) : void

Removes expired entries from the ticket store

RevokeTicket ( string userAuthenticationTicketKey ) : void

Removes the ticket from the collection if it exists. If the ticket does not exist in the ticket store, just return (do not throw an exception).

RevokeUserTickets ( string username ) : void

Revoke all tickets corresponding to the supplied Username.

UpdateTicketExpiration ( UserAuthenticationTicket ticket, System.DateTime newExpiration ) : void

Updates the expiration date and time for an existing ticket. If the ticket does not exist in the ticket store, just return (do not throw an exception).

VerifyTicket ( UserAuthenticationTicket ticket ) : bool

Verify that the supplied UserAuthenticationTicket exists in the ticket store

비공개 메소드들

메소드 설명
GetCacheKey ( string ticketKey ) : string

Converts a ticketKey to a corresponding key in the ticket store (cache provider).

메소드 상세

ContainsTicket() 공개 메소드

Indicates whether or not the ticket store contains the supplied userAuthenticationTicketKey
userAuthenticationTicketKey is null userAuthenticationTicketKey is empty
public ContainsTicket ( string userAuthenticationTicketKey ) : bool
userAuthenticationTicketKey string The ticket to check for
리턴 bool

GetAllTicketKeys() 공개 메소드

Retrieves all UserAuthenticationTicket keys in the ticket store that have not already expired.
public GetAllTicketKeys ( ) : IEnumerable
리턴 IEnumerable

GetAllTicketedUsers() 공개 메소드

Retrieves a list of all users that have non-expired ServerAuthenticationTickets.
public GetAllTicketedUsers ( ) : IEnumerable
리턴 IEnumerable

GetAllTickets() 공개 메소드

Retrieves all tickets in the ticket store that have not already expired.
public GetAllTickets ( ) : IEnumerable
리턴 IEnumerable

GetTicket() 공개 메소드

Retrieve a UserAuthenticationTicket from the ticket store by it's ticket key
userAuthenticationTicketKey is null userAuthenticationTicketKey is empty
public GetTicket ( string userAuthenticationTicketKey ) : UserAuthenticationTicket
userAuthenticationTicketKey string The ticket key generated by the server
리턴 UserAuthenticationTicket

GetUserTicketKeys() 공개 메소드

Retrieves all non-expired UserAuthenticationTicket keys in the ticket store associated with the username supplied.
username is null username is empty
public GetUserTicketKeys ( string username ) : IEnumerable
username string The username to search the collection for
리턴 IEnumerable

GetUserTickets() 공개 메소드

Retrieves all non-expired tickets in the ticket store associated with the username supplied.
username is null username is empty
public GetUserTickets ( string username ) : IEnumerable
username string The Username to search the collection for
리턴 IEnumerable

Initialize() 공개 메소드

Initializes the CacheUserAuthenticationTicketProvider module.
public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
리턴 void

InsertTicket() 공개 메소드

Inserts a UserAuthenticationTicket to the ticket store with a corresponding ticket expiration date.
UserAuthenticationTicket is null
public InsertTicket ( UserAuthenticationTicket ticket, System.DateTime expiration ) : void
ticket UserAuthenticationTicket The UserAuthenticationTicket to insert
expiration System.DateTime The date and time at which the ticket expires
리턴 void

RemoveExpiredTickets() 공개 메소드

Removes expired entries from the ticket store
public RemoveExpiredTickets ( ) : void
리턴 void

RevokeTicket() 공개 메소드

Removes the ticket from the collection if it exists. If the ticket does not exist in the ticket store, just return (do not throw an exception).
userAuthenticationTicketKey is null userAuthenticationTicketKey is empty
public RevokeTicket ( string userAuthenticationTicketKey ) : void
userAuthenticationTicketKey string The ticket to remove from the ticket store
리턴 void

RevokeUserTickets() 공개 메소드

Revoke all tickets corresponding to the supplied Username.
The username supplied is null The username supplied is empty
public RevokeUserTickets ( string username ) : void
username string The Username to revoke tickets for
리턴 void

UpdateTicketExpiration() 공개 메소드

Updates the expiration date and time for an existing ticket. If the ticket does not exist in the ticket store, just return (do not throw an exception).
UserAuthenticationTicket is null
public UpdateTicketExpiration ( UserAuthenticationTicket ticket, System.DateTime newExpiration ) : void
ticket UserAuthenticationTicket The UserAuthenticationTicket to insert
newExpiration System.DateTime The new expiration date and time
리턴 void

VerifyTicket() 공개 메소드

Verify that the supplied UserAuthenticationTicket exists in the ticket store
public VerifyTicket ( UserAuthenticationTicket ticket ) : bool
ticket UserAuthenticationTicket The UserAuthenticationTicket to verify
리턴 bool