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

Inheritance: IProxyTicketManagerWrapper
Mostra file Open project: NIKASoftwareDevs/Orchard

Public Methods

Method Description
CacheProxyTicketManager ( IHttpContextAccessor httpContextAccessor, IClock clock ) : System
GetProxyGrantingTicket ( string proxyGrantingTicketIou ) : string

Method to retrieve a ProxyGrantingTicket based on the ProxyGrantingTicketIou. Implementations are not guaranteed to return the same result if retieve is called twice with the same proxyGrantingTicketIou.

Initialize ( ) : void

You retrieve CasAuthentication properties in the constructor or else you will cause a StackOverflow. CasAuthentication.Initialize() will call Initialize() on all relevant controls when its initialization is complete. In Initialize(), you can retrieve properties from CasAuthentication.

InsertProxyGrantingTicketMapping ( string proxyGrantingTicketIou, string proxyGrantingTicket ) : void

Method to save the ProxyGrantingTicket to the backing storage facility.

RemoveExpiredMappings ( ) : void

Removes expired PGTIOU-PGT from the ticket store

Method Details

CacheProxyTicketManager() public method

public CacheProxyTicketManager ( IHttpContextAccessor httpContextAccessor, IClock clock ) : System
httpContextAccessor IHttpContextAccessor
clock IClock
return System

GetProxyGrantingTicket() public method

Method to retrieve a ProxyGrantingTicket based on the ProxyGrantingTicketIou. Implementations are not guaranteed to return the same result if retieve is called twice with the same proxyGrantingTicketIou.
public GetProxyGrantingTicket ( string proxyGrantingTicketIou ) : string
proxyGrantingTicketIou string used as the key
return string

Initialize() public method

You retrieve CasAuthentication properties in the constructor or else you will cause a StackOverflow. CasAuthentication.Initialize() will call Initialize() on all relevant controls when its initialization is complete. In Initialize(), you can retrieve properties from CasAuthentication.
public Initialize ( ) : void
return void

InsertProxyGrantingTicketMapping() public method

Method to save the ProxyGrantingTicket to the backing storage facility.
public InsertProxyGrantingTicketMapping ( string proxyGrantingTicketIou, string proxyGrantingTicket ) : void
proxyGrantingTicketIou string used as the key
proxyGrantingTicket string used as the value
return void

RemoveExpiredMappings() public method

Removes expired PGTIOU-PGT from the ticket store
public RemoveExpiredMappings ( ) : void
return void