java.lang.Object
org.elasticsearch.common.ssl.DerParser
A bare-minimum ASN.1 DER decoder, just having enough functions to
decode PKCS#1 private keys in order to remain JCE/JVM agnostic.
Based on https://github.com/groovenauts/jmeter_oauth_plugin/blob/master/jmeter/src/ main/java/org/apache/jmeter/protocol/oauth/sampler/PrivateKeyReader.java
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAsn1Object(int requiredType) Read an object and verify its type
-
Constructor Details
-
DerParser
public DerParser(byte[] bytes)
-
-
Method Details
-
readAsn1Object
Read an object and verify its type- Parameters:
requiredType- The expected type code- Throws:
IOException- if data can not be parsedIllegalStateException- if the parsed object is of the wrong type
-
readAsn1Object
- Throws:
IOException
-