|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.jce.provider.ReasonsMask
class ReasonsMask
This class helps to handle CRL revocation reasons mask. Each CRL handles a certain set of revocation reasons.
Field Summary | |
---|---|
private int |
_reasons
|
(package private) static ReasonsMask |
allReasons
A mask with all revocation reasons. |
Constructor Summary | |
---|---|
ReasonsMask()
A reason mask with no reason. |
|
ReasonsMask(int reasons)
Constructs are reason mask with the reasons. |
Method Summary | |
---|---|
(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)
Returns true 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()
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 Detail |
---|
private int _reasons
static final ReasonsMask allReasons
Constructor Detail |
---|
ReasonsMask(int reasons)
reasons
- The reasons.ReasonsMask()
Method Detail |
---|
void addReasons(ReasonsMask mask)
mask
- The reasons mask to add.boolean isAllReasons()
true
if this reasons mask contains all possible
reasons.
true
if this reasons mask contains all possible
reasons.ReasonsMask intersect(ReasonsMask mask)
mask
- The mask to intersect with.
boolean hasNewReasons(ReasonsMask mask)
true
if the passed reasons mask has new reasons.
mask
- The reasons mask which should be tested for new reasons.
true
if the passed reasons mask has new reasons.int getReasons()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |