Package akka.pki.pem

Class PEMDecoder$


  • public class PEMDecoder$
    extends java.lang.Object
    Decodes lax PEM encoded data, according to

    https://tools.ietf.org/html/rfc7468

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PEMDecoder$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PEMDecoder$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PEMDecoder.DERData decode​(java.lang.String pemData)
      Decodes a PEM String into an identifier and the DER bytes of the content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final PEMDecoder$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • PEMDecoder$

        public PEMDecoder$()
    • Method Detail

      • decode

        public PEMDecoder.DERData decode​(java.lang.String pemData)
                                  throws PEMLoadingException
        Decodes a PEM String into an identifier and the DER bytes of the content.

        See https://tools.ietf.org/html/rfc7468 and https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail

        Parameters:
        pemData - the PEM data (pre-eb, base64-MIME data and ponst-eb)
        Returns:
        the decoded bytes and the content type.
        Throws:
        PEMLoadingException