github - added addUsages() method.
@@ -48,6 +48,11 @@ public NetscapeCertType(
super(usage.getBytes(), usage.getPadBits());
}
+ public boolean hasUsages(int usages)
+ {
+ return (intValue() & usages) == usages;
+ }
+
public String toString()
{
return "NetscapeCertType: 0x" + Integer.toHexString(intValue());
