Package akka.pki.pem

Class DERPrivateKeyLoader$


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

      Fields 
      Modifier and Type Field Description
      static DERPrivateKeyLoader$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.PrivateKey load​(PEMDecoder.DERData derData)
      Converts the DER payload in PEMDecoder.DERData into a PrivateKey.
      java.security.PrivateKey load​(java.util.List<PEMDecoder.DERData> derData)
      Java API: Converts the DER payload in the first private key entry in the given PEMDecoder.DERData into a PrivateKey.
      java.security.PrivateKey load​(scala.collection.immutable.Seq<PEMDecoder.DERData> derData)
      Scala API: Converts the DER payload in the first private key entry in the given PEMDecoder.DERData into a PrivateKey.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.util.List<PEMDecoder.DERData> derData)
                                      throws PEMLoadingException
        Java API: Converts the DER payload in the first private key entry in the given PEMDecoder.DERData into a PrivateKey. The received DER data must be a valid PKCS#1 (identified in PEM as "RSA PRIVATE KEY") or non-encrypted PKCS#8 (identified in PEM as "PRIVATE KEY" or "EC PRIVATE KEY").

        Throws:
        PEMLoadingException - when the no entry in derData is a supported format
      • load

        public java.security.PrivateKey load​(scala.collection.immutable.Seq<PEMDecoder.DERData> derData)
                                      throws PEMLoadingException
        Scala API: Converts the DER payload in the first private key entry in the given PEMDecoder.DERData into a PrivateKey. The received DER data must be a valid PKCS#1 (identified in PEM as "RSA PRIVATE KEY") or non-encrypted PKCS#8 (identified in PEM as "PRIVATE KEY" or "EC PRIVATE KEY").

        Throws:
        PEMLoadingException - when the no entry in derData is a supported format
      • 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 PKCS#1 (identified in PEM as "RSA PRIVATE KEY") or non-encrypted PKCS#8 (identified * in PEM as "PRIVATE KEY" or "EC PRIVATE KEY").

        Throws:
        PEMLoadingException - when the derData is for an unsupported format