mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
34 lines
No EOL
746 B
Java
34 lines
No EOL
746 B
Java
package org.thoughtcrime.bouncycastle.asn1;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class BERApplicationSpecificParser
|
|
implements ASN1ApplicationSpecificParser
|
|
{
|
|
private final int tag;
|
|
private final ASN1StreamParser parser;
|
|
|
|
BERApplicationSpecificParser(int tag, ASN1StreamParser parser)
|
|
{
|
|
this.tag = tag;
|
|
this.parser = parser;
|
|
}
|
|
|
|
public DEREncodable readObject()
|
|
throws IOException
|
|
{
|
|
return parser.readObject();
|
|
}
|
|
|
|
public DERObject getDERObject()
|
|
{
|
|
try
|
|
{
|
|
return new BERApplicationSpecific(tag, parser.readVector());
|
|
}
|
|
catch (IOException e)
|
|
{
|
|
throw new IllegalStateException(e.getMessage());
|
|
}
|
|
}
|
|
} |