C# 클래스 GSF.Communication.Radius.RadiusPacket

Represents a data packet transferred between RADIUS client and server.
상속: ISupportBinaryImage
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Encoding System.Text.Encoding
EndianOrder System.EndianOrder

공개 메소드들

메소드 설명
CreateRequestAuthenticator ( string sharedSecret ) : byte[]

Generates an "Authenticator" value used in a RADIUS request packet sent by the client to server.

CreateResponseAuthenticator ( string sharedSecret, RadiusPacket requestPacket, RadiusPacket responsePacket ) : byte[]

Generates an "Authenticator" value used in a RADIUS response packet sent by the server to client.

EncryptPassword ( string password, string sharedSecret, byte requestAuthenticator ) : byte[]

Generates an encrypted password using the RADIUS protocol specification (RFC 2285).

GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates a binary representation of this RadiusPacket object and copies it into the given buffer.

GetAttributeValue ( AttributeType attributeType ) : byte[]

Gets the value of the specified attributeType if it is present in the RadiusPacket.

ParseBinaryImage ( byte buffer, int startIndex, int length ) : int

Parses RadiusPacket object by parsing the specified buffer containing a binary image.

RadiusPacket ( ) : System

Initializes a new instance of the RadiusPacket class.

RadiusPacket ( PacketType type ) : System

Initializes a new instance of the RadiusPacket class.

RadiusPacket ( byte binaryImage, int startIndex, int length ) : System

Initializes a new instance of the RadiusPacket class.

메소드 상세

CreateRequestAuthenticator() 공개 정적인 메소드

Generates an "Authenticator" value used in a RADIUS request packet sent by the client to server.
public static CreateRequestAuthenticator ( string sharedSecret ) : byte[]
sharedSecret string The shared secret to be used in generating the output.
리턴 byte[]

CreateResponseAuthenticator() 공개 정적인 메소드

Generates an "Authenticator" value used in a RADIUS response packet sent by the server to client.
public static CreateResponseAuthenticator ( string sharedSecret, RadiusPacket requestPacket, RadiusPacket responsePacket ) : byte[]
sharedSecret string The shared secret key.
requestPacket RadiusPacket RADIUS packet sent from client to server.
responsePacket RadiusPacket RADIUS packet sent from server to client.
리턴 byte[]

EncryptPassword() 공개 정적인 메소드

Generates an encrypted password using the RADIUS protocol specification (RFC 2285).
public static EncryptPassword ( string password, string sharedSecret, byte requestAuthenticator ) : byte[]
password string User's password.
sharedSecret string Shared secret key.
requestAuthenticator byte Request authenticator byte array.
리턴 byte[]

GenerateBinaryImage() 공개 메소드

Generates a binary representation of this RadiusPacket object and copies it into the given buffer.
is null. /// or is less than 0 -or- /// and will exceed length. ///
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
리턴 int

GetAttributeValue() 공개 메소드

Gets the value of the specified attributeType if it is present in the RadiusPacket.
public GetAttributeValue ( AttributeType attributeType ) : byte[]
attributeType AttributeType of the whose value is to be retrieved.
리턴 byte[]

ParseBinaryImage() 공개 메소드

Parses RadiusPacket object by parsing the specified buffer containing a binary image.
is null.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte Buffer containing binary image to parse.
startIndex int 0-based starting index in the to start parsing.
length int Valid number of bytes within from .
리턴 int

RadiusPacket() 공개 메소드

Initializes a new instance of the RadiusPacket class.
public RadiusPacket ( ) : System
리턴 System

RadiusPacket() 공개 메소드

Initializes a new instance of the RadiusPacket class.
public RadiusPacket ( PacketType type ) : System
type PacketType Type of the .
리턴 System

RadiusPacket() 공개 메소드

Initializes a new instance of the RadiusPacket class.
public RadiusPacket ( byte binaryImage, int startIndex, int length ) : System
binaryImage byte Binary image to be used for initializing .
startIndex int 0-based starting index of initialization data in the .
length int Valid number of bytes in from .
리턴 System

프로퍼티 상세

Encoding 공개적으로 정적으로 프로퍼티

Encoding format for encoding text.
public static Encoding,System.Text Encoding
리턴 System.Text.Encoding

EndianOrder 공개적으로 정적으로 프로퍼티

EndianOrder to use for byte conversion.
public static EndianOrder,System EndianOrder
리턴 System.EndianOrder