PemReader

Inheritance: java.lang.Object

public class PemReader

PEM format reader.

Constructors

Constructor Description
PemReader()

Methods

Method Description
getPrivateKey(InputStream pem) Reads private key from stream.
getPrivateKey(String path) Reads private key from PEM file.

PemReader()

public PemReader()

getPrivateKey(InputStream pem)

public static System.Security.Cryptography.RSACryptoServiceProvider getPrivateKey(InputStream pem)

Reads private key from stream.

Parameters:

Parameter Type Description
pem java.io.InputStream Stream to read from.

Returns: com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider - Certificate that was read.

getPrivateKey(String path)

public static System.Security.Cryptography.RSACryptoServiceProvider getPrivateKey(String path)

Reads private key from PEM file.

Parameters:

Parameter Type Description
path java.lang.String Path to file to read from.

Returns: com.aspose.ms.System.Security.Cryptography.RSACryptoServiceProvider - Certificate that was read.