class PemBytes extends AnyRef
An abstract representation of a PEM formatted file.
The PEM file format, originally from Privacy Enhanced Mail, is distinctive in that it contains a boundary header and footer and the data within the boundary is Base 64 encoded.
-----BEGIN CERTIFICATE----- base64encodedbytes -----END CERTIFICATE-----
- Alphabetic
- By Inheritance
- PemBytes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PemBytes(message: String, name: String)
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
readMessage(messageType: String): Try[Array[Byte]]
This method attempts to read a single PEM encoded message.
This method attempts to read a single PEM encoded message.
- Note
The mesage must contain a header. Items before the header are ignored.
,The message must contain a footer. Items after the footer are ignored.
,If there are multiple messages within the same file, only the first one will be returned.
-
def
readMessages(messageType: String): Try[Seq[Array[Byte]]]
This method attemps to read multiple PEM encoded messages of the same type.
This method attemps to read multiple PEM encoded messages of the same type.
- Note
Messages must contain a header. Items before the header are ignored.
,Messages must contain a footer. Items after the footer are ignored.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()