C# 클래스 NGM.CasClient.Client.Validation.TicketValidator.AbstractUrlTicketValidator

Abstract validator implementation for tickets that are validated against an Http server.
This is the .Net port of org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator
상속: ITicketValidator
파일 보기 프로젝트 열기: NIKASoftwareDevs/Orchard

보호된 프로퍼티들

프로퍼티 타입 설명
CASServices ICasServices
UrlUtil IUrlUtil

공개 메소드들

메소드 설명
Initialize ( ) : void

Perform any initialization required for the UrlTicketValidator implementation.

Validate ( string ticket ) : ICasPrincipal

Attempts to validate a ticket for the provided service.

보호된 메소드들

메소드 설명
AbstractUrlTicketValidator ( ICasServices casServices, IUrlUtil urlUtil ) : System
ParseResponseFromServer ( string response, string ticket ) : ICasPrincipal

Parses the response from the server into a CAS Assertion and includes this in a CASPrincipal.

RetrieveResponseFromServer ( string validationUrl, string ticket ) : string

Default implementation that performs an HTTP GET request to the validation URL supplied with the supplied ticket and returns the response body as a string.

메소드 상세

AbstractUrlTicketValidator() 보호된 메소드

protected AbstractUrlTicketValidator ( ICasServices casServices, IUrlUtil urlUtil ) : System
casServices ICasServices
urlUtil IUrlUtil
리턴 System

Initialize() 공개 추상적인 메소드

Perform any initialization required for the UrlTicketValidator implementation.
public abstract Initialize ( ) : void
리턴 void

ParseResponseFromServer() 보호된 추상적인 메소드

Parses the response from the server into a CAS Assertion and includes this in a CASPrincipal.
/// Thrown if creation of the Assertion fails. ///
protected abstract ParseResponseFromServer ( string response, string ticket ) : ICasPrincipal
response string /// the response from the server, in any format. ///
ticket string The ticket used to generate the validation response
리턴 ICasPrincipal

RetrieveResponseFromServer() 보호된 메소드

Default implementation that performs an HTTP GET request to the validation URL supplied with the supplied ticket and returns the response body as a string.
protected RetrieveResponseFromServer ( string validationUrl, string ticket ) : string
validationUrl string The validation URL to request
ticket string The ticket parameter to pass to the URL
리턴 string

Validate() 공개 메소드

Attempts to validate a ticket for the provided service.
/// Thrown if ticket validation fails. ///
public Validate ( string ticket ) : ICasPrincipal
ticket string the ticket to validate
리턴 ICasPrincipal

프로퍼티 상세

CASServices 보호되어 있는 프로퍼티

protected ICasServices CASServices
리턴 ICasServices

UrlUtil 보호되어 있는 프로퍼티

protected IUrlUtil UrlUtil
리턴 IUrlUtil