Methods Summary |
---|
void | encode(DEROutputStream out)
out.writeEncoded(DERTags.APPLICATION | tag, octets);
|
public boolean | equals(java.lang.Object o)
if ((o == null) || !(o instanceof DERApplicationSpecific))
{
return false;
}
DERApplicationSpecific other = (DERApplicationSpecific)o;
if (tag != other.tag)
{
return false;
}
if (octets.length != other.octets.length)
{
return false;
}
for (int i = 0; i < octets.length; i++)
{
if (octets[i] != other.octets[i])
{
return false;
}
}
return true;
|
public int | getApplicationTag()
return tag & 0x1F;
|
public byte[] | getContents()
return octets;
|
public DERObject | getObject()
return new ASN1InputStream(getContents()).readObject();
|
public int | hashCode()
byte[] b = this.getContents();
int value = 0;
for (int i = 0; i != b.length; i++)
{
value ^= (b[i] & 0xff) << (i % 4);
}
return value ^ this.getApplicationTag();
|
public boolean | isConstructed()
return (tag & DERTags.CONSTRUCTED) != 0;
|