Top Description Fields Constructors Methods
org.bouncycastle.pkix.jcajce

pack-priv Class ReasonsMask

extends Object
Class Inheritance
Imports
org.bouncycastle.asn1.x509.ReasonFlags

This class helps to handle CRL revocation reasons mask. Each CRL handles a certain set of revocation reasons.

Field Summary

Modifier and TypeField and Description
private int
pack-priv static final ReasonsMask
allReasons

A mask with all revocation reasons.

Constructor Summary

AccessConstructor and Description
pack-priv
ReasonsMask(ReasonFlags
The reasons.
reasons
)

Constructs are reason mask with the reasons.

private
ReasonsMask(int reasons)

pack-priv
ReasonsMask()

A reason mask with no reason.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addReasons(ReasonsMask
The reasons mask to add.
mask
)

Adds all reasons from the reasons mask to this mask.

pack-priv int

Returns:

Returns the reasons.
getReasons
()

Returns the reasons in this mask.

pack-priv boolean

Returns:

true if the passed reasons mask has new reasons.
hasNewReasons
(ReasonsMask
The reasons mask which should be tested for new reasons.
mask
)

Returns true if the passed reasons mask has new reasons.

pack-priv ReasonsMask

Returns:

The intersection of this and teh given mask.
intersect
(ReasonsMask
The mask to intersect with.
mask
)

Intersects this mask with the given reasons mask.

pack-priv boolean

Returns:

true if this reasons mask contains all possible reasons.
isAllReasons
()

Returns true if this reasons mask contains all possible reasons.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_reasonsback to summary
private int _reasons
allReasonsback to summary
pack-priv static final ReasonsMask allReasons

A mask with all revocation reasons.

Constructor Detail

ReasonsMaskback to summary
pack-priv ReasonsMask(ReasonFlags reasons)

Constructs are reason mask with the reasons.

Parameters
reasons:ReasonFlags

The reasons.

ReasonsMaskback to summary
private ReasonsMask(int reasons)
ReasonsMaskback to summary
pack-priv ReasonsMask()

A reason mask with no reason.

Method Detail

addReasonsback to summary
pack-priv void addReasons(ReasonsMask mask)

Adds all reasons from the reasons mask to this mask.

Parameters
mask:ReasonsMask

The reasons mask to add.

getReasonsback to summary
pack-priv int getReasons()

Returns the reasons in this mask.

Returns:int

Returns the reasons.

hasNewReasonsback to summary
pack-priv boolean hasNewReasons(ReasonsMask mask)

Returns true if the passed reasons mask has new reasons.

Parameters
mask:ReasonsMask

The reasons mask which should be tested for new reasons.

Returns:boolean

true if the passed reasons mask has new reasons.

intersectback to summary
pack-priv ReasonsMask intersect(ReasonsMask mask)

Intersects this mask with the given reasons mask.

Parameters
mask:ReasonsMask

The mask to intersect with.

Returns:ReasonsMask

The intersection of this and teh given mask.

isAllReasonsback to summary
pack-priv boolean isAllReasons()

Returns true if this reasons mask contains all possible reasons.

Returns:boolean

true if this reasons mask contains all possible reasons.