DERPrivateKeyLoader

org.apache.pekko.pki.pem.DERPrivateKeyLoader

Attributes

Source
DERPrivateKeyLoader.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def load(derData: DERData): PrivateKey

Converts the DER payload in PEMDecoder.DERData into a java.security.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").

Converts the DER payload in PEMDecoder.DERData into a java.security.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").

Attributes

Throws
PEMLoadingException

when the derData is for an unsupported format

Source
DERPrivateKeyLoader.scala