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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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).")
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])