C# Class pGina.Plugin.RADIUS.Packet

Afficher le fichier Open project: MutonUfoAI/pgina Class Usage Examples

Méthodes publiques

Méthode Description
Packet ( Code code, byte identifier, byte auth ) : System
Packet ( Code code, byte identifier, string sharedKey ) : System
Packet ( Code code, string sharedKey ) : System
Packet ( byte data ) : System
ToString ( ) : string
VSA_VendorType ( byte val ) : byte
VSA_valueAsString ( byte val ) : string
VSA_vendorID ( byte val ) : int
addAttribute ( AttributeType type, byte value ) : void
addAttribute ( AttributeType type, int value ) : void
addAttribute ( AttributeType type, string value ) : void
containsAttribute ( AttributeType type ) : bool
getByteArrayAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
getFirstByteArrayAttribute ( AttributeType type ) : byte[]
getFirstIntAttribute ( AttributeType type ) : int
getFirstStringAttribute ( AttributeType type ) : string
getIntAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
getStringAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
toBytes ( ) : byte[]
verifyResponseAuthenticator ( byte requestAuthenticator, string sharedKey ) : bool

Private Methods

Méthode Description
PAPPassword ( byte password ) : byte[]
convertToBytes ( ) : byte[]
equalByteArrays ( byte arr1, byte arr2 ) : bool

Method Details

Packet() public méthode

public Packet ( Code code, byte identifier, byte auth ) : System
code Code
identifier byte
auth byte
Résultat System

Packet() public méthode

public Packet ( Code code, byte identifier, string sharedKey ) : System
code Code
identifier byte
sharedKey string
Résultat System

Packet() public méthode

public Packet ( Code code, string sharedKey ) : System
code Code
sharedKey string
Résultat System

Packet() public méthode

public Packet ( byte data ) : System
data byte
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

VSA_VendorType() public static méthode

public static VSA_VendorType ( byte val ) : byte
val byte
Résultat byte

VSA_valueAsString() public static méthode

public static VSA_valueAsString ( byte val ) : string
val byte
Résultat string

VSA_vendorID() public static méthode

public static VSA_vendorID ( byte val ) : int
val byte
Résultat int

addAttribute() public méthode

public addAttribute ( AttributeType type, byte value ) : void
type AttributeType
value byte
Résultat void

addAttribute() public méthode

public addAttribute ( AttributeType type, int value ) : void
type AttributeType
value int
Résultat void

addAttribute() public méthode

public addAttribute ( AttributeType type, string value ) : void
type AttributeType
value string
Résultat void

containsAttribute() public méthode

public containsAttribute ( AttributeType type ) : bool
type AttributeType
Résultat bool

getByteArrayAttributes() public méthode

public getByteArrayAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Résultat IEnumerable

getFirstByteArrayAttribute() public méthode

public getFirstByteArrayAttribute ( AttributeType type ) : byte[]
type AttributeType
Résultat byte[]

getFirstIntAttribute() public méthode

public getFirstIntAttribute ( AttributeType type ) : int
type AttributeType
Résultat int

getFirstStringAttribute() public méthode

public getFirstStringAttribute ( AttributeType type ) : string
type AttributeType
Résultat string

getIntAttributes() public méthode

public getIntAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Résultat IEnumerable

getStringAttributes() public méthode

public getStringAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Résultat IEnumerable

toBytes() public méthode

public toBytes ( ) : byte[]
Résultat byte[]

verifyResponseAuthenticator() public méthode

public verifyResponseAuthenticator ( byte requestAuthenticator, string sharedKey ) : bool
requestAuthenticator byte
sharedKey string
Résultat bool