com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class PemReader



  • public class PemReader
    extends Object

    PEM format reader.

    • Constructor Detail

      • PemReader

        public PemReader()
    • Method Detail

      • getPrivateKey

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

        Reads private key from stream.

        Parameters:
        pem - Stream to read from.
        Returns:
        Certificate that was read.
      • getPrivateKey

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

        Reads private key from PEM file.

        Parameters:
        path - Path to file to read from.
        Returns:
        Certificate that was read.

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.