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.
Afficher le fichier Open project: symplified/Symplified.Auth

Méthodes publiques

Méthode 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 méthode

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

GenerateMessageHandle() public static méthode

public static GenerateMessageHandle ( ) : byte[]
Résultat byte[]

GenerateSourceIdHash() public static méthode

public static GenerateSourceIdHash ( string sourceIdUrl ) : byte[]
sourceIdUrl string
Résultat byte[]

GetEndpointIndex() public static méthode

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

ParseArtifact() public static méthode

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
Résultat void

TryParseArtifact() public static méthode

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
Résultat bool