object PEMDecoder
Decodes lax PEM encoded data, according to
https://tools.ietf.org/html/rfc7468
- Source
- PEMDecoder.scala
- Alphabetic
- By Inheritance
- PEMDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class DERData extends AnyRef
- Annotations
- @ApiMayChange()
Value Members
- 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()
- 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()
- 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).")