C# Class 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.
显示文件 Open project: symplified/Symplified.Auth

Public Methods

Method Description
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

Method Details

CreateArtifact() public static method

public static CreateArtifact ( Int16 typeCodeValue, Int16 endpointIndexValue, byte sourceIdHash, byte messageHandle ) : string
typeCodeValue System.Int16
endpointIndexValue System.Int16
sourceIdHash byte
messageHandle byte
return string

GenerateMessageHandle() public static method

public static GenerateMessageHandle ( ) : byte[]
return byte[]

GenerateSourceIdHash() public static method

public static GenerateSourceIdHash ( string sourceIdUrl ) : byte[]
sourceIdUrl string
return byte[]

GetEndpointIndex() public static method

Retrieves the endpoint index from an artifact
public static GetEndpointIndex ( string artifact ) : ushort
artifact string The artifact.
return ushort

ParseArtifact() public static method

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
return void

TryParseArtifact() public static method

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
return bool