Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if ((o == null) || !(o instanceof DEREncodable))
{
return false;
}
DEREncodable other = (DEREncodable)o;
return this.toASN1Object().equals(other.getDERObject());
|
public byte[] | getDEREncoded()Return the DER encoding of the object, null if the DER encoding can not be made.
try
{
return this.getEncoded(DER);
}
catch (IOException e)
{
return null;
}
|
public DERObject | getDERObject()
return this.toASN1Object();
|
public byte[] | getEncoded()
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
ASN1OutputStream aOut = new ASN1OutputStream(bOut);
aOut.writeObject(this);
return bOut.toByteArray();
|
public byte[] | getEncoded(java.lang.String encoding)
if (encoding.equals(DER))
{
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
DEROutputStream dOut = new DEROutputStream(bOut);
dOut.writeObject(this);
return bOut.toByteArray();
}
return this.getEncoded();
|
public int | hashCode()
return this.toASN1Object().hashCode();
|
public abstract DERObject | toASN1Object()
|