public class PemReader extends Object
PEM format reader.
Constructor and Description |
---|
PemReader() |
Modifier and Type | Method and Description |
---|---|
static com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider |
getPrivateKey(InputStream pem)
Reads private key from stream.
|
static com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider |
getPrivateKey(String path)
Reads private key from PEM file.
|
public static com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider getPrivateKey(InputStream pem)
Reads private key from stream.
pem
- Stream to read from.public static com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider getPrivateKey(String path)
Reads private key from PEM file.
path
- Path to file to read from.