Class ReasonsMask
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.pkipath.bc.ReasonsMask
-
class ReasonsMask extends java.lang.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
_reasons
(package private) static ReasonsMask
allReasons
A mask with all revocation reasons.
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
ReasonsMask()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addReasons(ReasonsMask mask)
Adds all reasons from the reasons mask to this mask.(package private) int
getReasons()
Returns the reasons in this mask.(package private) boolean
hasNewReasons(ReasonsMask mask)
Returnstrue
if the passed reasons mask has new reasons.(package private) ReasonsMask
intersect(ReasonsMask mask)
Intersects this mask with the given reasons mask.(package private) boolean
isAllReasons()
Returnstrue
if this reasons mask contains all possible reasons.
-
-
-
Field Detail
-
_reasons
private int _reasons
-
allReasons
static final ReasonsMask allReasons
A mask with all revocation reasons.
-
-
Method Detail
-
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()
Returnstrue
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)
Returnstrue
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.
-
-