class Pkernel::CRLReason

Constants

AA_COMPROMISE
AFFILIATION_CHANGED
CA_COMPROMISE
CERTIFICATE_HOLD
CESSATION_OF_OPERATION
KEY_COMPROMISE
PRIVILEGE_WITHDRAWN
REMOVE_FROM_CRL
SUPERSEDED
UNSPECIFIED

Public Class Methods

to_string(reason) click to toggle source
# File lib/pkernel.rb, line 108
def self.to_string(reason)
  case reason
  when UNSPECIFIED
    "CRL reason is not specified"
  when KEY_COMPROMISE
    "Key is compromised"
  when CA_COMPROMISE
    "Certificate authority is compromised"
  when AFFILIATION_CHANGED
    "Affiliation has changed"
  when SUPERSEDED
    "Certificate is superseded"
  when CESSATION_OF_OPERATION
    "Certificate issuer has ceased operation"
  when CERTIFICATE_HOLD
    "Certificate is on hold"
  when REMOVE_FROM_CRL
    "Certificate has removed from CRL"
  when PRIVILEGE_WITHDRAWN
    "Certificate owner has privilege withdrawn"
  when AA_COMPROMISE
    "AA has compromised"
  else
    ""
  end
end