C# 클래스 NGM.CasClient.Client.State.CacheServiceTicketManager

상속: IServiceTicketManagerWrapper
파일 보기 프로젝트 열기: NIKASoftwareDevs/Orchard

Private Properties

프로퍼티 타입 설명
GetTicketKey string

공개 메소드들

메소드 설명
CacheServiceTicketManager ( IHttpContextAccessor httpContextAccessor ) : System

The constructor is marked internal because this object is not suitable for use outside of this assembly.

ContainsTicket ( string serviceTicket ) : bool

Indicates whether or not the ticket store contains the supplied serviceTicket

GetAllServiceTickets ( ) : IEnumerable

Retrieves all CAS Service Tickets in the ticket store that have not already expired.

GetAllTicketedUsers ( ) : IEnumerable

Retrieves a list of all users that have non-expired CAS authentication tickets.

GetAllTickets ( ) : IEnumerable

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

GetTicket ( string serviceTicket ) : CasAuthenticationTicket

Retrieve a CasAuthenticationTicket from the ticket store by it's CAS Service Ticket

GetUserServiceTickets ( string netId ) : IEnumerable

Retrieves all non-expired CAS Service Tickets in the ticket store associated with the netId supplied.

GetUserTickets ( string netId ) : IEnumerable

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

Initialize ( ) : void

Performs initialization of the CacheServiceTicketManager

InsertTicket ( CasAuthenticationTicket casAuthenticationTicket, System.DateTime expiration ) : void

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

RemoveExpiredTickets ( ) : void

Removes expired entries from the ticket store

RevokeTicket ( string serviceTicket ) : 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 netId ) : void

Revoke all tickets corresponding to the supplied NetId.

UpdateTicketExpiration ( CasAuthenticationTicket casAuthenticationTicket, 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).

VerifyClientTicket ( CasAuthenticationTicket casAuthenticationTicket ) : bool

Verify that the supplied casAuthenticationTicket exists in the ticket store

비공개 메소드들

메소드 설명
GetTicketKey ( string serviceTicket ) : string

Converts a CAS Service Ticket to its corresponding key in the ticket manager store (cache provider).

메소드 상세

CacheServiceTicketManager() 공개 메소드

The constructor is marked internal because this object is not suitable for use outside of this assembly.
public CacheServiceTicketManager ( IHttpContextAccessor httpContextAccessor ) : System
httpContextAccessor IHttpContextAccessor
리턴 System

ContainsTicket() 공개 메소드

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

GetAllServiceTickets() 공개 메소드

Retrieves all CAS Service Tickets in the ticket store that have not already expired.
public GetAllServiceTickets ( ) : IEnumerable
리턴 IEnumerable

GetAllTicketedUsers() 공개 메소드

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

GetAllTickets() 공개 메소드

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

GetTicket() 공개 메소드

Retrieve a CasAuthenticationTicket from the ticket store by it's CAS Service Ticket
serviceTicket is null serviceTicket is empty
public GetTicket ( string serviceTicket ) : CasAuthenticationTicket
serviceTicket string The service ticket generated by the CAS server
리턴 CasAuthenticationTicket

GetUserServiceTickets() 공개 메소드

Retrieves all non-expired CAS Service Tickets in the ticket store associated with the netId supplied.
netId is null netId is empty
public GetUserServiceTickets ( string netId ) : IEnumerable
netId string The netId to search the collection for
리턴 IEnumerable

GetUserTickets() 공개 메소드

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

Initialize() 공개 메소드

Performs initialization of the CacheServiceTicketManager
public Initialize ( ) : void
리턴 void

InsertTicket() 공개 메소드

Inserts a CasAuthenticationTicket to the ticket store with a corresponding ticket expiration date.
casAuthenticationTicket is null
public InsertTicket ( CasAuthenticationTicket casAuthenticationTicket, System.DateTime expiration ) : void
casAuthenticationTicket CasAuthenticationTicket The CasAuthenticationTicket 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).
serviceTicket is null serviceTicket is empty
public RevokeTicket ( string serviceTicket ) : void
serviceTicket string The ticket to remove from the ticket store
리턴 void

RevokeUserTickets() 공개 메소드

Revoke all tickets corresponding to the supplied NetId.
The netId supplied is null The netId supplied is empty
public RevokeUserTickets ( string netId ) : void
netId string The NetId 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).
casAuthenticationTicket is null
public UpdateTicketExpiration ( CasAuthenticationTicket casAuthenticationTicket, System.DateTime newExpiration ) : void
casAuthenticationTicket CasAuthenticationTicket The CasAuthenticationTicket to insert
newExpiration System.DateTime The new expiration date and time
리턴 void

VerifyClientTicket() 공개 메소드

Verify that the supplied casAuthenticationTicket exists in the ticket store
public VerifyClientTicket ( CasAuthenticationTicket casAuthenticationTicket ) : bool
casAuthenticationTicket CasAuthenticationTicket The casAuthenticationTicket to verify
리턴 bool