Class KeyUsage
- Namespace
- Org.BouncyCastle.Asn1.X509
- Assembly
- BouncyCastle.Cryptography.dll
public class KeyUsage : DerBitString, IAsn1String, Asn1BitStringParser, IAsn1Convertible
- Inheritance
-
KeyUsage
- Implements
- Inherited Members
Constructors
KeyUsage(int)
public KeyUsage(int usage)
Parameters
usageint
Fields
CrlSign
public const int CrlSign = 2
Field Value
DataEncipherment
public const int DataEncipherment = 16
Field Value
DecipherOnly
public const int DecipherOnly = 32768
Field Value
DigitalSignature
public const int DigitalSignature = 128
Field Value
EncipherOnly
public const int EncipherOnly = 1
Field Value
KeyAgreement
public const int KeyAgreement = 8
Field Value
KeyCertSign
public const int KeyCertSign = 4
Field Value
KeyEncipherment
public const int KeyEncipherment = 32
Field Value
NonRepudiation
public const int NonRepudiation = 64
Field Value
Methods
FromExtensions(X509Extensions)
public static KeyUsage FromExtensions(X509Extensions extensions)
Parameters
extensionsX509Extensions
Returns
GetInstance(object)
public static KeyUsage GetInstance(object obj)
Parameters
objobject
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.