C# Класс pGina.Plugin.RADIUS.Packet

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

Приватные методы

Метод Описание
PAPPassword ( byte password ) : byte[]
convertToBytes ( ) : byte[]
equalByteArrays ( byte arr1, byte arr2 ) : bool

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

Packet() публичный Метод

public Packet ( Code code, byte identifier, byte auth ) : System
code Code
identifier byte
auth byte
Результат System

Packet() публичный Метод

public Packet ( Code code, byte identifier, string sharedKey ) : System
code Code
identifier byte
sharedKey string
Результат System

Packet() публичный Метод

public Packet ( Code code, string sharedKey ) : System
code Code
sharedKey string
Результат System

Packet() публичный Метод

public Packet ( byte data ) : System
data byte
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

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

public static VSA_VendorType ( byte val ) : byte
val byte
Результат byte

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

public static VSA_valueAsString ( byte val ) : string
val byte
Результат string

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

public static VSA_vendorID ( byte val ) : int
val byte
Результат int

addAttribute() публичный Метод

public addAttribute ( AttributeType type, byte value ) : void
type AttributeType
value byte
Результат void

addAttribute() публичный Метод

public addAttribute ( AttributeType type, int value ) : void
type AttributeType
value int
Результат void

addAttribute() публичный Метод

public addAttribute ( AttributeType type, string value ) : void
type AttributeType
value string
Результат void

containsAttribute() публичный Метод

public containsAttribute ( AttributeType type ) : bool
type AttributeType
Результат bool

getByteArrayAttributes() публичный Метод

public getByteArrayAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Результат IEnumerable

getFirstByteArrayAttribute() публичный Метод

public getFirstByteArrayAttribute ( AttributeType type ) : byte[]
type AttributeType
Результат byte[]

getFirstIntAttribute() публичный Метод

public getFirstIntAttribute ( AttributeType type ) : int
type AttributeType
Результат int

getFirstStringAttribute() публичный Метод

public getFirstStringAttribute ( AttributeType type ) : string
type AttributeType
Результат string

getIntAttributes() публичный Метод

public getIntAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Результат IEnumerable

getStringAttributes() публичный Метод

public getStringAttributes ( AttributeType type, byte vsa = null ) : IEnumerable
type AttributeType
vsa byte
Результат IEnumerable

toBytes() публичный Метод

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

verifyResponseAuthenticator() публичный Метод

public verifyResponseAuthenticator ( byte requestAuthenticator, string sharedKey ) : bool
requestAuthenticator byte
sharedKey string
Результат bool