Property | Type | Description | |
---|---|---|---|
GetTicketKey | string |
Method | 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
|
Method | Description | |
---|---|---|
GetTicketKey ( string serviceTicket ) : string |
Converts a CAS Service Ticket to its corresponding key in the ticket manager store (cache provider).
|
public CacheServiceTicketManager ( IHttpContextAccessor httpContextAccessor ) : System | ||
httpContextAccessor | IHttpContextAccessor | |
return | System |
public ContainsTicket ( string serviceTicket ) : bool | ||
serviceTicket | string | The service ticket to check for |
return | bool |
public GetAllServiceTickets ( ) : IEnumerable |
||
return | IEnumerable |
public GetTicket ( string serviceTicket ) : CasAuthenticationTicket | ||
serviceTicket | string | The service ticket generated by the CAS server |
return | CasAuthenticationTicket |
public GetUserServiceTickets ( string netId ) : IEnumerable |
||
netId | string | The netId to search the collection for |
return | IEnumerable |
public GetUserTickets ( string netId ) : IEnumerable |
||
netId | string | The NetId to search the collection for |
return | IEnumerable |
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 |
return | void |
public RevokeTicket ( string serviceTicket ) : void | ||
serviceTicket | string | The ticket to remove from the ticket store |
return | void |
public RevokeUserTickets ( string netId ) : void | ||
netId | string | The NetId to revoke tickets for |
return | void |
public UpdateTicketExpiration ( CasAuthenticationTicket casAuthenticationTicket, System.DateTime newExpiration ) : void | ||
casAuthenticationTicket | CasAuthenticationTicket | The CasAuthenticationTicket to insert |
newExpiration | System.DateTime | The new expiration date and time |
return | void |
public VerifyClientTicket ( CasAuthenticationTicket casAuthenticationTicket ) : bool | ||
casAuthenticationTicket | CasAuthenticationTicket | The casAuthenticationTicket to verify |
return | bool |