Package akka.pki.pem
Class PEMDecoder$
- java.lang.Object
 - 
- akka.pki.pem.PEMDecoder$
 
 
- 
public class PEMDecoder$ extends java.lang.ObjectDecodes lax PEM encoded data, according tohttps://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.DERDatadecode(java.lang.String pemData)Decodes the first entry in a PEM String into an identifier and the DER bytes of the content.scala.collection.immutable.Seq<PEMDecoder.DERData>decodeAll(java.lang.String pemData)Scala API: Decodes all entries in a PEM String.java.util.List<PEMDecoder.DERData>getAllDecoded(java.lang.String pemData)Java API: Decodes all entries in a PEM String. 
 - 
 
- 
- 
Field Detail
- 
MODULE$
public static final PEMDecoder$ MODULE$
Static reference to the singleton instance of this Scala object. 
 - 
 
- 
Method Detail
- 
decode
public PEMDecoder.DERData decode(java.lang.String pemData) throws PEMLoadingException
Decodes the first entry in a PEM String into an identifier and the DER bytes of the content.Note that for EDCSA and possibly other key types a pem string will contain multiple entries, see
decodeAll(java.lang.String)orgetAllDecoded(java.lang.String)for extracting all entries.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
 
- 
decodeAll
public scala.collection.immutable.Seq<PEMDecoder.DERData> decodeAll(java.lang.String pemData)
Scala API: Decodes all entries in a PEM String. 
- 
getAllDecoded
public java.util.List<PEMDecoder.DERData> getAllDecoded(java.lang.String pemData) throws PEMLoadingException
Java API: Decodes all entries in a PEM String.- Throws:
 PEMLoadingException
 
 - 
 
 -