C# Class NGM.CasClient.Client.State.CacheServiceTicketManager

Inheritance: IServiceTicketManagerWrapper
Afficher le fichier Open project: NIKASoftwareDevs/Orchard

Private Properties

Свойство Type Description
GetTicketKey string

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetTicketKey ( string serviceTicket ) : string

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

Method Details

CacheServiceTicketManager() public méthode

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

ContainsTicket() public méthode

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
Résultat bool

GetAllServiceTickets() public méthode

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

GetAllTicketedUsers() public méthode

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

GetAllTickets() public méthode

Retrieves all tickets in the ticket store that have not already expired.
public GetAllTickets ( ) : IEnumerable
Résultat IEnumerable

GetTicket() public méthode

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
Résultat CasAuthenticationTicket

GetUserServiceTickets() public méthode

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
Résultat IEnumerable

GetUserTickets() public méthode

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
Résultat IEnumerable

Initialize() public méthode

Performs initialization of the CacheServiceTicketManager
public Initialize ( ) : void
Résultat void

InsertTicket() public méthode

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
Résultat void

RemoveExpiredTickets() public méthode

Removes expired entries from the ticket store
public RemoveExpiredTickets ( ) : void
Résultat void

RevokeTicket() public méthode

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
Résultat void

RevokeUserTickets() public méthode

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
Résultat void

UpdateTicketExpiration() public méthode

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
Résultat void

VerifyClientTicket() public méthode

Verify that the supplied casAuthenticationTicket exists in the ticket store
public VerifyClientTicket ( CasAuthenticationTicket casAuthenticationTicket ) : bool
casAuthenticationTicket CasAuthenticationTicket The casAuthenticationTicket to verify
Résultat bool