C# Класс Gurux.DLMS.Objects.GXDLMSSecuritySetup

Наследование: GXDLMSObject, IGXDLMSBase
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetSecurityValue int
GetSertificates byte[]
IGXDLMSBase byte[]
IGXDLMSBase int
IGXDLMSBase int[]
IGXDLMSBase object
IGXDLMSBase string[]
UpdateSertificates void

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

Метод Описание
Activate ( Gurux.DLMS.GXDLMSClient client, Gurux security ) : byte[][]

Activates and strengthens the security policy.

ExportCertificateByEntity ( Gurux.DLMS.GXDLMSClient client, CertificateEntity entity, CertificateType type, byte systemTitle ) : byte[][]

Exports an X.509 v3 certificate from the server using entity information.

ExportCertificateBySerial ( Gurux.DLMS.GXDLMSClient client, byte serialNumber, byte issuer ) : byte[][]

Exports an X.509 v3 certificate from the server using serial information.

GXDLMSSecuritySetup ( ) : System

Constructor.

GXDLMSSecuritySetup ( string ln ) : System

Constructor.

GXDLMSSecuritySetup ( string ln, ushort sn ) : System

Constructor.

GenerateCertificate ( Gurux.DLMS.GXDLMSClient client, CertificateType type ) : byte[][]

Ask Server sends the Certificate Signing Request (CSR) data.

GenerateKeyPair ( Gurux.DLMS.GXDLMSClient client, CertificateType type ) : byte[][]

Generates an asymmetric key pair as required by the security suite.

GetDataType ( int index ) : DataType
GetValues ( ) : object[]
GlobalKeyTransfer ( Gurux.DLMS.GXDLMSClient client, byte kek, byte[]>.List list ) : byte[][]

Updates one or more global keys.

IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
Import ( Gurux.DLMS.GXDLMSClient client, CngKey key ) : byte[][]

Imports an X.509 v3 certificate of a public key.

ImportCertificate ( Gurux.DLMS.GXDLMSClient client, byte key ) : byte[][]

Imports an X.509 v3 certificate of a public key.

RemoveCertificateByEntity ( Gurux.DLMS.GXDLMSClient client, CertificateEntity entity, CertificateType type, byte systemTitle ) : byte[][]

Removes X.509 v3 certificate from the server using entity.

RemoveCertificateBySerial ( Gurux.DLMS.GXDLMSClient client, byte serialNumber, byte issuer ) : byte[][]

Removes X.509 v3 certificate from the server using serial number.

keyAgreement ( GXDLMSClient client, byte[]>.List list ) : byte[][]

Agree on one or more symmetric keys using the key agreement algorithm.

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

Метод Описание
GetSecurityValue ( Gurux security ) : int

Get security enum as integer value.

GetSertificates ( ) : byte[]

Get sertificates as byte buffer.

IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : byte[]
IGXDLMSBase ( ) : int
IGXDLMSBase ( ) : int[]
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : object
IGXDLMSBase ( ) : string[]
UpdateSertificates ( object list ) : void

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

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

Activates and strengthens the security policy.
public Activate ( Gurux.DLMS.GXDLMSClient client, Gurux security ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
security Gurux New security level.
Результат byte[][]

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

Exports an X.509 v3 certificate from the server using entity information.
public ExportCertificateByEntity ( Gurux.DLMS.GXDLMSClient client, CertificateEntity entity, CertificateType type, byte systemTitle ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
entity CertificateEntity Certificate entity.
type CertificateType Certificate type.
systemTitle byte System title.
Результат byte[][]

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

Exports an X.509 v3 certificate from the server using serial information.
public ExportCertificateBySerial ( Gurux.DLMS.GXDLMSClient client, byte serialNumber, byte issuer ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
serialNumber byte Serial number.
issuer byte Issuer
Результат byte[][]

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

Constructor.
public GXDLMSSecuritySetup ( ) : System
Результат System

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

Constructor.
public GXDLMSSecuritySetup ( string ln ) : System
ln string Logical Name of the object.
Результат System

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

Constructor.
public GXDLMSSecuritySetup ( string ln, ushort sn ) : System
ln string Logical Name of the object.
sn ushort Short Name of the object.
Результат System

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

Ask Server sends the Certificate Signing Request (CSR) data.
public GenerateCertificate ( Gurux.DLMS.GXDLMSClient client, CertificateType type ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
type CertificateType identifies the key pair for which the certificate will be requested.
Результат byte[][]

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

Generates an asymmetric key pair as required by the security suite.
public GenerateKeyPair ( Gurux.DLMS.GXDLMSClient client, CertificateType type ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
type CertificateType New certificate type.
Результат byte[][]

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

public GetDataType ( int index ) : DataType
index int
Результат DataType

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

public GetValues ( ) : object[]
Результат object[]

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

Updates one or more global keys.
public GlobalKeyTransfer ( Gurux.DLMS.GXDLMSClient client, byte kek, byte[]>.List list ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
kek byte Master key, also known as Key Encrypting Key.
list byte[]>.List List of Global key types and keys.
Результат byte[][]

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

public IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
settings Gurux.DLMS.GXDLMSSettings
e Gurux.DLMS.ValueEventArgs
Результат void

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

Imports an X.509 v3 certificate of a public key.
public Import ( Gurux.DLMS.GXDLMSClient client, CngKey key ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
key CngKey Public key.
Результат byte[][]

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

Imports an X.509 v3 certificate of a public key.
public ImportCertificate ( Gurux.DLMS.GXDLMSClient client, byte key ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
key byte Public key.
Результат byte[][]

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

Removes X.509 v3 certificate from the server using entity.
public RemoveCertificateByEntity ( Gurux.DLMS.GXDLMSClient client, CertificateEntity entity, CertificateType type, byte systemTitle ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
entity CertificateEntity Certificate entity type.
type CertificateType Certificate type.
systemTitle byte System title.
Результат byte[][]

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

Removes X.509 v3 certificate from the server using serial number.
public RemoveCertificateBySerial ( Gurux.DLMS.GXDLMSClient client, byte serialNumber, byte issuer ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
serialNumber byte Serial number.
issuer byte Issuer.
Результат byte[][]

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

Agree on one or more symmetric keys using the key agreement algorithm.
public keyAgreement ( GXDLMSClient client, byte[]>.List list ) : byte[][]
client GXDLMSClient DLMS client that is used to generate action.
list byte[]>.List List of keys.
Результат byte[][]