title: Do java.security.Key.getEncoded() return data in DER encoded format?
body: <p>Do java.security.Key.getEncoded() returns data in <a href="http://en.wikipedia.org/wiki/Distinguished_Encoding_Rules" rel="noreferrer">DER</a> encoded format?</p>
  
  <p>If not, is there a method that do?</p>
  
  <p>UPDATE: A Key interface holding an RSA private key implementation</p>