java.lang.Object
eu.emi.security.authn.x509.helpers.pkipath.bc.ReasonsMask

class ReasonsMask extends Object
This class helps to handle CRL revocation reasons mask. Each CRL handles a certain set of revocation reasons.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    (package private) static final ReasonsMask
    A mask with all revocation reasons.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    (package private)
    A reason mask with no reason.
    private
    ReasonsMask(int reasons)
     
    (package private)
    ReasonsMask(org.bouncycastle.asn1.x509.ReasonFlags reasons)
    Constructs are reason mask with the reasons.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    Adds all reasons from the reasons mask to this mask.
    (package private) int
    Returns the reasons in this mask.
    (package private) boolean
    Returns true if the passed reasons mask has new reasons.
    (package private) ReasonsMask
    Intersects this mask with the given reasons mask.
    (package private) boolean
    Returns true if this reasons mask contains all possible reasons.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _reasons

      private int _reasons
    • allReasons

      static final ReasonsMask allReasons
      A mask with all revocation reasons.
  • Constructor Details

    • ReasonsMask

      ReasonsMask(org.bouncycastle.asn1.x509.ReasonFlags reasons)
      Constructs are reason mask with the reasons.
      Parameters:
      reasons - The reasons.
    • ReasonsMask

      private ReasonsMask(int reasons)
    • ReasonsMask

      ReasonsMask()
      A reason mask with no reason.
  • Method Details

    • addReasons

      void addReasons(ReasonsMask mask)
      Adds all reasons from the reasons mask to this mask.
      Parameters:
      mask - The reasons mask to add.
    • isAllReasons

      boolean isAllReasons()
      Returns true if this reasons mask contains all possible reasons.
      Returns:
      true if this reasons mask contains all possible reasons.
    • intersect

      ReasonsMask intersect(ReasonsMask mask)
      Intersects this mask with the given reasons mask.
      Parameters:
      mask - The mask to intersect with.
      Returns:
      The intersection of this and teh given mask.
    • hasNewReasons

      boolean hasNewReasons(ReasonsMask mask)
      Returns true if the passed reasons mask has new reasons.
      Parameters:
      mask - The reasons mask which should be tested for new reasons.
      Returns:
      true if the passed reasons mask has new reasons.
    • getReasons

      int getReasons()
      Returns the reasons in this mask.
      Returns:
      Returns the reasons.