Discuss this help topic in SecureBlackbox Forum

TSBKeyUsageType

Declared in     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Defines possible key usages.

Declaration

[C#/Java]
    TSBKeyUsageType = short;
        const short kuDigitalSignature = 0;
        const short kuNonRepudiation = 1;
        const short kuKeyEncipherment = 2;
        const short kuDataEncipherment = 3;
        const short kuKeyAgreement = 4;
        const short kuKeyCertSign = 5;
        const short kuCRLSign = 6;
        const short kuEncipherOnly = 7;
        const short kuDecipherOnly = 8;

[VB.NET]
    TSBKeyUsageType As Short
        Const kuDigitalSignature As Short = 0
        Const kuNonRepudiation As Short = 1
        Const kuKeyEncipherment As Short = 2
        Const kuDataEncipherment As Short = 3
        Const kuKeyAgreement As Short = 4
        Const kuKeyCertSign As Short = 5
        Const kuCRLSign As Short = 6
        Const kuEncipherOnly As Short = 7
        Const kuDecipherOnly As Short = 8

[Pascal]
    TSBKeyUsageType = (kuDigitalSignature, kuNonRepudiation, kuKeyEncipherment, kuDataEncipherment, kuKeyAgreement, kuKeyCertSign, kuCRLSign, kuEncipherOnly, kuDecipherOnly);

[C++]
    typedef uint8_t TSBKeyUsageTypeRaw;
    typedef enum { kuDigitalSignature = 0, kuNonRepudiation = 1, kuKeyEncipherment = 2, kuDataEncipherment = 3, kuKeyAgreement = 4, kuKeyCertSign = 5, kuCRLSign = 6, kuEncipherOnly = 7, kuDecipherOnly = 8 } TSBKeyUsageType;
    
    typedef uint32_t TSBKeyUsageRaw;
    typedef enum { f_kuDigitalSignature = 1, f_kuNonRepudiation = 2, f_kuKeyEncipherment = 4, f_kuDataEncipherment = 8, f_kuKeyAgreement = 16, f_kuKeyCertSign = 32, f_kuCRLSign = 64, f_kuEncipherOnly = 128, f_kuDecipherOnly = 256 } TSBKeyUsage;

[PHP]
    class TSBKeyUsageType extends TSBBaseEnum {
        const kuDigitalSignature = 0;
        const kuNonRepudiation = 1;
        const kuKeyEncipherment = 2;
        const kuDataEncipherment = 3;
        const kuKeyAgreement = 4;
        const kuKeyCertSign = 5;
        const kuCRLSign = 6;
        const kuEncipherOnly = 7;
        const kuDecipherOnly = 8;
    }

Possible values

Declared in

.NET:
  • Namespace: SBX509Ext
  • Assembly: SecureBlackbox
VCL:
  • Unit: SBX509Ext
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbx509ext.h

Discuss this help topic in SecureBlackbox Forum