C# Class pGina.Plugin.RADIUS.Packet

Datei anzeigen Open project: MutonUfoAI/pgina Class Usage Examples

Public Methods

Method 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

Method Description
PAPPassword ( byte password ) : byte[]
convertToBytes ( ) : byte[]
equalByteArrays ( byte arr1, byte arr2 ) : bool

Method Details

Packet() public method

public Packet ( Code code, byte identifier, byte auth ) : System
code Code
identifier byte
auth byte
return System

Packet() public method

public Packet ( Code code, byte identifier, string sharedKey ) : System
code Code
identifier byte
sharedKey string
return System

Packet() public method

public Packet ( Code code, string sharedKey ) : System
code Code
sharedKey string
return System

Packet() public method

public Packet ( byte data ) : System
data byte
return System

ToString() public method

public ToString ( ) : string
return string

VSA_VendorType() public static method

public static VSA_VendorType ( byte val ) : byte
val byte
return byte

VSA_valueAsString() public static method

public static VSA_valueAsString ( byte val ) : string
val byte
return string

VSA_vendorID() public static method

public static VSA_vendorID ( byte val ) : int
val byte
return int

addAttribute() public method

public addAttribute ( AttributeType type, byte value ) : void
type AttributeType
value byte
return void

addAttribute() public method

public addAttribute ( AttributeType type, int value ) : void
type AttributeType
value int
return void

addAttribute() public method

public addAttribute ( AttributeType type, string value ) : void
type AttributeType
value string
return void

containsAttribute() public method

public containsAttribute ( AttributeType type ) : bool
type AttributeType
return bool

getByteArrayAttributes() public method

public getByteArrayAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
return IEnumerable

getFirstByteArrayAttribute() public method

public getFirstByteArrayAttribute ( AttributeType type ) : byte[]
type AttributeType
return byte[]

getFirstIntAttribute() public method

public getFirstIntAttribute ( AttributeType type ) : int
type AttributeType
return int

getFirstStringAttribute() public method

public getFirstStringAttribute ( AttributeType type ) : string
type AttributeType
return string

getIntAttributes() public method

public getIntAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
return IEnumerable

getStringAttributes() public method

public getStringAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
return IEnumerable

toBytes() public method

public toBytes ( ) : byte[]
return byte[]

verifyResponseAuthenticator() public method

public verifyResponseAuthenticator ( byte requestAuthenticator, string sharedKey ) : bool
requestAuthenticator byte
sharedKey string
return bool