Package akka.pki.pem
Class DERPrivateKeyLoader
- java.lang.Object
-
- akka.pki.pem.DERPrivateKeyLoader
-
public class DERPrivateKeyLoader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DERPrivateKeyLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.PrivateKey
load(PEMDecoder.DERData derData)
Converts the DER payload inPEMDecoder.DERData
into aPrivateKey
.static java.security.PrivateKey
load(java.util.List<PEMDecoder.DERData> derData)
Java API: Converts the DER payload in the first private key entry in the givenPEMDecoder.DERData
into aPrivateKey
.static 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 givenPEMDecoder.DERData
into aPrivateKey
.
-
-
-
Method Detail
-
load
public static 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 givenPEMDecoder.DERData
into aPrivateKey
. 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 inderData
is a supported format
-
load
public static 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 givenPEMDecoder.DERData
into aPrivateKey
. 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 inderData
is a supported format
-
load
public static java.security.PrivateKey load(PEMDecoder.DERData derData) throws PEMLoadingException
Converts the DER payload inPEMDecoder.DERData
into aPrivateKey
. 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 thederData
is for an unsupported format
-
-