Package akka.pki.pem

Class DERPrivateKeyLoader$


  • public class DERPrivateKeyLoader$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final DERPrivateKeyLoader$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • DERPrivateKeyLoader$

        public DERPrivateKeyLoader$()
    • Method Detail

      • load

        public java.security.PrivateKey load​(PEMDecoder.DERData derData)
                                      throws PEMLoadingException
        Converts the DER payload in PEMDecoder.DERData into a PrivateKey. The received DER data must be a valid PKCS#1 (identified in PEM as "RSA PRIVATE KEY") or non-ecnrypted PKCS#8 (identified in PEM as "PRIVATE KEY").
        Throws:
        PEMLoadingException - when the derData is for an unsupported format