Packages

o

akka.pki.pem

PEMDecoder

object PEMDecoder

Decodes lax PEM encoded data, according to

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

Source
PEMDecoder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PEMDecoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class DERData extends AnyRef
    Annotations
    @ApiMayChange()

Value Members

  1. def decode(pemData: String): DERData

    Decodes the first entry in a PEM String into an identifier and the DER bytes of the content.

    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 or getAllDecoded for extracting all entries.

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

    pemData

    the PEM data (pre-eb, base64-MIME data and ponst-eb)

    returns

    the decoded bytes and the content type.

    Annotations
    @throws("If the `pemData` is not valid PEM format (according to https://tools.ietf.org/html/rfc7468).") @ApiMayChange()
  2. def decodeAll(pemData: String): Seq[DERData]

    Scala API: Decodes all entries in a PEM String.

    Scala API: Decodes all entries in a PEM String.

    Annotations
    @ApiMayChange()
  3. def getAllDecoded(pemData: String): List[DERData]

    Java API: Decodes all entries in a PEM String.

    Java API: Decodes all entries in a PEM String.

    Annotations
    @ApiMayChange() @throws("If the `pemData` is not valid PEM format (according to https://tools.ietf.org/html/rfc7468).")