/** * DER is an international standard for serializing data structures which is widely used in cryptography. * It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding * of the signature, as recognized by OpenSSL and other libraries. */ public byte[] encodeToDER() { try { return derByteStream().toByteArray(); } catch (IOException e) { throw new RuntimeException(e); // Cannot happen. } }
/** * DER is an international standard for serializing data structures which is widely used in cryptography. * It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding * of the signature, as recognized by OpenSSL and other libraries. */ public byte[] encodeToDER() { try { return derByteStream().toByteArray(); } catch (IOException e) { throw new RuntimeException(e); // Cannot happen. } }
/** * DER is an international standard for serializing data structures which is widely used in cryptography. * It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding * of the signature, as recognized by OpenSSL and other libraries. */ public byte[] encodeToDER() { try { return derByteStream().toByteArray(); } catch (IOException e) { throw new RuntimeException(e); // Cannot happen. } }
/** * DER is an international standard for serializing data structures which is widely used in cryptography. * It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding * of the signature, as recognized by OpenSSL and other libraries. */ public byte[] encodeToDER() { try { return derByteStream().toByteArray(); } catch (IOException e) { throw new RuntimeException(e); // Cannot happen. } }