Module: PkernelJce::Certificate::KeyUsage

Included in:
Pkernel::Certificate::KeyUsage
Defined in:
lib/pkernel_jce/certificate.rb

Constant Summary collapse

DIGITAL_SIGNATURE =

bouncycastle v1.57

Java::OrgBouncycastleAsn1X509::KeyUsage::digitalSignature
NON_REPUDIATION =
Java::OrgBouncycastleAsn1X509::KeyUsage::nonRepudiation
KEY_ENCIPHERMENT =
Java::OrgBouncycastleAsn1X509::KeyUsage::keyEncipherment
DATA_ENCIPHERMENT =
Java::OrgBouncycastleAsn1X509::KeyUsage::dataEncipherment
KEY_AGREEMENT =
Java::OrgBouncycastleAsn1X509::KeyUsage::keyAgreement
KEY_CERT_SIGN =
Java::OrgBouncycastleAsn1X509::KeyUsage::keyCertSign
CRL_SIGN =
Java::OrgBouncycastleAsn1X509::KeyUsage::cRLSign
ENCIPHER_ONLY =

only meaningful of KEY_AGREEMENT is set

Java::OrgBouncycastleAsn1X509::KeyUsage::encipherOnly
DECIPHER_ONLY =
Java::OrgBouncycastleAsn1X509::KeyUsage::decipherOnly
DEF_USER_IDENTITY =
DIGITAL_SIGNATURE | NON_REPUDIATION | KEY_ENCIPHERMENT | KEY_AGREEMENT
DEF_USER_DATA_SEC =
DATA_ENCIPHERMENT | ENCIPHER_ONLY | DECIPHER_ONLY
DEF_ISSUER =
DIGITAL_SIGNATURE | NON_REPUDIATION | KEY_ENCIPHERMENT | CRL_SIGN | KEY_CERT_SIGN
KsuMap =
{
  :digital_sign => DIGITAL_SIGNATURE,
  :non_repudiation => NON_REPUDIATION,
  :key_encipherment => KEY_ENCIPHERMENT,
  :data_encipherment => DATA_ENCIPHERMENT,
  :key_agreement => KEY_AGREEMENT,
  :key_cert_sign => KEY_CERT_SIGN,
  :crl_sign => CRL_SIGN,
  :encipher_only => ENCIPHER_ONLY,
  :decipher_only => DECIPHER_ONLY
}
KsuKeyName =
{
  :digital_sign => "Digital Signature",
  :non_repudiation => "Non Repudiation",
  :key_encipherment => "Key Encipherment",
  :data_encipherment => "Data Encipherment",
  :key_agreement => "Key Agreement",
  :key_cert_sign => "Key & Cert Sign",
  :crl_sign => "CRL Sign",
  :encipher_only => "Encipher Only",
  :decipher_only => "Decipher Only"
}