C# 클래스 Gurux.DLMS.Objects.GXDLMSSecuritySetup

상속: GXDLMSObject, IGXDLMSBase
파일 보기 프로젝트 열기: Gurux/Gurux.DLMS.Net

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[][]