Class ReasonsMask
java.lang.Object
eu.emi.security.authn.x509.helpers.pkipath.bc.ReasonsMask
This class helps to handle CRL revocation reasons mask. Each CRL handles a
certain set of revocation reasons.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
(package private) static final ReasonsMask
A mask with all revocation reasons. -
Constructor Summary
ConstructorsModifierConstructorDescription(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 TypeMethodDescription(package private) void
addReasons
(ReasonsMask mask) Adds all reasons from the reasons mask to this mask.(package private) int
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
Returnstrue
if this reasons mask contains all possible reasons.
-
Field Details
-
_reasons
private int _reasons -
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
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
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
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.
-