Class DerEncoder
java.lang.Object
com.google.api.client.json.webtoken.DerEncoder
Utilities for re-encoding a signature byte array with DER encoding.
Note: that this is not a general purpose encoder and currently only handles 512 bit signatures. ES256 verification algorithms expect the signature bytes in DER encoding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static byte
private static byte
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DER_TAG_SIGNATURE_OBJECT
private static byte DER_TAG_SIGNATURE_OBJECT -
DER_TAG_ASN1_INTEGER
private static byte DER_TAG_ASN1_INTEGER
-
-
Constructor Details
-
DerEncoder
public DerEncoder()
-
-
Method Details
-
encode
static byte[] encode(byte[] signature)
-