Class FreshestCRLExtension.Reason

java.lang.Object
org.mozilla.jss.netscape.security.x509.FreshestCRLExtension.Reason
Enclosing class:
FreshestCRLExtension

public static class FreshestCRLExtension.Reason extends Object
Represents a reason that a cert may be revoked. These reasons are expressed in a ReasonFlags bit string.
  • Field Details

  • Constructor Details

    • Reason

      private Reason()
    • Reason

      private Reason(String name, byte bitMask)
  • Method Details

    • fromString

      public static FreshestCRLExtension.Reason fromString(String name)
    • getName

      public String getName()
    • getBitMask

      public byte getBitMask()
    • bitArrayToReasonArray

      public static FreshestCRLExtension.Reason[] bitArrayToReasonArray(byte bitFlags)
      Given a bit array representing reason flags, extracts the reasons and returns them as an array.
      Parameters:
      bitFlags - A bit vector containing reason flags.
      Returns:
      An array of reasons contained in the bit vector. May be zero-length but will not be null.
    • bitArrayToReasonArray

      public static FreshestCRLExtension.Reason[] bitArrayToReasonArray(byte[] bitFlags)
      Given a bit array representing reason flags, extracts the reasons and returns them as an array. Currently, only the first byte of the bitflags are examined.
      Parameters:
      bitFlags - A bit vector containing reason flags. The format is big-endian (MSB first). Only the first byte is examined.
      Returns:
      An array of reasons contained in the bit vector. May be zero-length but will not be null.