50 lines
1.5 KiB
Java
50 lines
1.5 KiB
Java
package org.bouncycastle.jce.provider;
|
|
|
|
import org.bouncycastle.asn1.x509.ReasonFlags;
|
|
|
|
/* loaded from: classes6.dex */
|
|
class ReasonsMask {
|
|
static final ReasonsMask allReasons = new ReasonsMask(33023);
|
|
private int _reasons;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public boolean isAllReasons() {
|
|
return this._reasons == allReasons._reasons;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public ReasonsMask intersect(ReasonsMask reasonsMask) {
|
|
ReasonsMask reasonsMask2 = new ReasonsMask();
|
|
reasonsMask2.addReasons(new ReasonsMask(reasonsMask.getReasons() & this._reasons));
|
|
return reasonsMask2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public boolean hasNewReasons(ReasonsMask reasonsMask) {
|
|
return ((reasonsMask.getReasons() ^ this._reasons) | this._reasons) != 0;
|
|
}
|
|
|
|
int getReasons() {
|
|
return this._reasons;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void addReasons(ReasonsMask reasonsMask) {
|
|
this._reasons = reasonsMask.getReasons() | this._reasons;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public ReasonsMask(ReasonFlags reasonFlags) {
|
|
this._reasons = reasonFlags.intValue();
|
|
}
|
|
|
|
private ReasonsMask(int i) {
|
|
this._reasons = i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public ReasonsMask() {
|
|
this(0);
|
|
}
|
|
}
|