Methods Summary |
---|
void | encode(DEROutputStream out)
out.writeEncoded(ENUMERATED, bytes);
|
public boolean | equals(java.lang.Object o)
if (!(o instanceof DEREnumerated))
{
return false;
}
DEREnumerated other = (DEREnumerated)o;
if (bytes.length != other.bytes.length)
{
return false;
}
for (int i = 0; i != bytes.length; i++)
{
if (bytes[i] != other.bytes[i])
{
return false;
}
}
return true;
|
public static org.bouncycastle.asn1.DEREnumerated | getInstance(java.lang.Object obj)return an integer from the passed in object
if (obj == null || obj instanceof DEREnumerated)
{
return (DEREnumerated)obj;
}
if (obj instanceof ASN1OctetString)
{
return new DEREnumerated(((ASN1OctetString)obj).getOctets());
}
if (obj instanceof ASN1TaggedObject)
{
return getInstance(((ASN1TaggedObject)obj).getObject());
}
throw new IllegalArgumentException("illegal object in getInstance: " + obj.getClass().getName());
|
public static org.bouncycastle.asn1.DEREnumerated | getInstance(ASN1TaggedObject obj, boolean explicit)return an Enumerated from a tagged object.
return getInstance(obj.getObject());
|
public java.math.BigInteger | getValue()
return new BigInteger(bytes);
|
public int | hashCode()
return this.getValue().hashCode();
|