Package akka.pki.pem
Class PEMDecoder
- java.lang.Object
-
- akka.pki.pem.PEMDecoder
-
public class PEMDecoder extends java.lang.Object
Decodes lax PEM encoded data, according tohttps://tools.ietf.org/html/rfc7468
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PEMDecoder.DERData
-
Constructor Summary
Constructors Constructor Description PEMDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PEMDecoder.DERData
decode(java.lang.String pemData)
Decodes a PEM String into an identifier and the DER bytes of the content.
-
-
-
Method Detail
-
decode
public static 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
-
-