C# 클래스 Sholo.Web.Security.Authentication.Device.Provider.CacheDeviceAuthenticationTicketProvider

상속: DeviceAuthenticationTicketProviderBase
파일 보기 프로젝트 열기: scottt732/SholoWebSecurity

공개 메소드들

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

Indicates whether or not the ticket store contains the supplied userAuthenticationTicketKey

GetAllTicketKeys ( ) : IEnumerable

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

GetAllTickets ( ) : IEnumerable

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

GetDeviceTicketsByHostAddress ( string hostAddress ) : IEnumerable
GetDeviceUsers ( ) : IEnumerable
GetTicket ( string ticketKey ) : DeviceAuthenticationTicket

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

Initialize ( string name, NameValueCollection config ) : void

Initializes the CacheUserAuthenticationTicketProvider module.

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

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

RemoveExpiredTickets ( ) : void

Removes expired entries from the ticket store

RevokeTicket ( string ticketKey ) : 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).

UpdateTicketExpiration ( DeviceAuthenticationTicket 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 ( DeviceAuthenticationTicket ticket ) : bool

Verify that the supplied DeviceAuthenticationTicket 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
ticketKey is null ticketKey is empty
public ContainsTicket ( string ticketKey ) : bool
ticketKey string The ticket to check for
리턴 bool

GetAllTicketKeys() 공개 메소드

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

GetAllTickets() 공개 메소드

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

GetDeviceTicketsByHostAddress() 공개 메소드

public GetDeviceTicketsByHostAddress ( string hostAddress ) : IEnumerable
hostAddress string
리턴 IEnumerable

GetDeviceUsers() 공개 메소드

public GetDeviceUsers ( ) : IEnumerable
리턴 IEnumerable

GetTicket() 공개 메소드

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

Initialize() 공개 메소드

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

InsertTicket() 공개 메소드

Inserts a DeviceAuthenticationTicket to the ticket store with a corresponding ticket expiration date.
DeviceAuthenticationTicket is null
public InsertTicket ( DeviceAuthenticationTicket ticket, System.DateTime expiration ) : void
ticket DeviceAuthenticationTicket The DeviceAuthenticationTicket 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).
icketKey is null ticketKey is empty
public RevokeTicket ( string ticketKey ) : void
ticketKey string The ticket to remove from the ticket store
리턴 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).
DeviceAuthenticationTicket is null
public UpdateTicketExpiration ( DeviceAuthenticationTicket ticket, System.DateTime newExpiration ) : void
ticket DeviceAuthenticationTicket The DeviceAuthenticationTicket to insert
newExpiration System.DateTime The new expiration date and time
리턴 void

VerifyTicket() 공개 메소드

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