@Override
      public byte[] getEncodedPrivateKey() {
        return keyPair.getPrivate().getEncoded();
      }
RSA-based implementation for {@link KeyPair} creation.
extensions/security/portability-security-jwe/src/main/java/org/datatransferproject/security/jwe/JWEKeyGenerator.java