C# Класс dk.nita.saml20.Utils.ArtifactUtil

Contains functions to generate and parse artifacts, as defined in "Bindings for the OASIS Security Assertion Markup Language (SAML) v. 2.0" specification.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateArtifact ( Int16 typeCodeValue, Int16 endpointIndexValue, byte sourceIdHash, byte messageHandle ) : string

GenerateMessageHandle ( ) : byte[]

GenerateSourceIdHash ( string sourceIdUrl ) : byte[]

GetEndpointIndex ( string artifact ) : ushort

Retrieves the endpoint index from an artifact

ParseArtifact ( string artifact, Int16 &typeCodeValue, Int16 &endpointIndex, byte &sourceIdHash, byte &messageHandle ) : void

TryParseArtifact ( string artifact, Int16 &typeCodeValue, Int16 &endpointIndex, byte &sourceIdHash, byte &messageHandle ) : bool

Описание методов

CreateArtifact() публичный статический Метод

public static CreateArtifact ( Int16 typeCodeValue, Int16 endpointIndexValue, byte sourceIdHash, byte messageHandle ) : string
typeCodeValue System.Int16
endpointIndexValue System.Int16
sourceIdHash byte
messageHandle byte
Результат string

GenerateMessageHandle() публичный статический Метод

public static GenerateMessageHandle ( ) : byte[]
Результат byte[]

GenerateSourceIdHash() публичный статический Метод

public static GenerateSourceIdHash ( string sourceIdUrl ) : byte[]
sourceIdUrl string
Результат byte[]

GetEndpointIndex() публичный статический Метод

Retrieves the endpoint index from an artifact
public static GetEndpointIndex ( string artifact ) : ushort
artifact string The artifact.
Результат ushort

ParseArtifact() публичный статический Метод

public static ParseArtifact ( string artifact, Int16 &typeCodeValue, Int16 &endpointIndex, byte &sourceIdHash, byte &messageHandle ) : void
artifact string
typeCodeValue System.Int16
endpointIndex System.Int16
sourceIdHash byte
messageHandle byte
Результат void

TryParseArtifact() публичный статический Метод

public static TryParseArtifact ( string artifact, Int16 &typeCodeValue, Int16 &endpointIndex, byte &sourceIdHash, byte &messageHandle ) : bool
artifact string
typeCodeValue System.Int16
endpointIndex System.Int16
sourceIdHash byte
messageHandle byte
Результат bool