Class ReasonsMask
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.pkipath.bc.ReasonsMask
-
class ReasonsMask extends java.lang.ObjectThis 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 ReasonsMaskallReasonsA mask with all revocation reasons.
-
Constructor Summary
Constructors Modifier Constructor Description (package private)ReasonsMask()A reason mask with no reason.privateReasonsMask(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) voidaddReasons(ReasonsMask mask)Adds all reasons from the reasons mask to this mask.(package private) intgetReasons()Returns the reasons in this mask.(package private) booleanhasNewReasons(ReasonsMask mask)Returnstrueif the passed reasons mask has new reasons.(package private) ReasonsMaskintersect(ReasonsMask mask)Intersects this mask with the given reasons mask.(package private) booleanisAllReasons()Returnstrueif 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()
Returnstrueif this reasons mask contains all possible reasons.- Returns:
trueif 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)
Returnstrueif the passed reasons mask has new reasons.- Parameters:
mask- The reasons mask which should be tested for new reasons.- Returns:
trueif the passed reasons mask has new reasons.
-
getReasons
int getReasons()
Returns the reasons in this mask.- Returns:
- Returns the reasons.
-
-