Module: PkernelJce::Certificate::ExtKeyUsage

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

Overview

end module CertKeyUsage

Constant Summary collapse

ANY_EXT_KEY_USAGE =
org.bouncycastle.asn1.x509.KeyPurposeId::anyExtendedKeyUsage
TLS_SERVER_AUTH =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_serverAuth
TLS_CLIENT_AUTH =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_clientAuth
CODE_SIGNING =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_codeSigning
EMAIL_PROTECTION =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_emailProtection
TIMESTAMPING =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_timeStamping
OCSP_SIGNING =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_OCSPSigning
DVCS =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_dvcs
SPGP_CERT_AA_SERVER_AUTH =
org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_sbgpCertAAServerAuth
EksuMap =
{
  :any_eksu => ANY_EXT_KEY_USAGE,
  :tls_server_auth => TLS_SERVER_AUTH,
  :tls_client_auth => TLS_CLIENT_AUTH,
  :code_signing => CODE_SIGNING,
  :email_protection => EMAIL_PROTECTION,
  :timestamping => TIMESTAMPING,
  :ocsp_signing => OCSP_SIGNING,
  :dvcs => DVCS
  #:pgp_cert_Server_auth = SPGP_CERT_AA_SERVER_AUTH
}
EksuKeyName =
{
  :any_eksu => "Any extended key usage",
  :tls_server_auth => "TLS server authentication",
  :tls_client_auth => "TLS client authentication",
  :code_signing => "Code signing",
  :email_protection => "Email protection",
  :timestamping => "Timestamping",
  :ocsp_signing => "OCSP Signing",
  :dvcs => "Data Validation and Certification Server / Trusted Third Party (TTP)"
  #:pgp_cert_Server_auth = "PGP cert server auth?"
}