PemContent

PEM encoded content that can provide certificates and private keys.

Author

Scott Frederick

Phillip Webb

Since

3.2.0

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
Parse and return all certificates from the PEM content.
Link copied to clipboard
Parse and return the private keys from the PEM content.
open fun getPrivateKey(password: String): PrivateKey
Parse and return the private keys from the PEM content or null if there is no private key.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isPresentInText(text: String): Boolean
Return if PEM content is present in the given text.
Link copied to clipboard
open fun load(in: InputStream): PemContent
Load PemContent from the given InputStream.
open fun load(path: Path): PemContent
Load PemContent from the given Path.
Link copied to clipboard
open fun of(text: String): PemContent
Return a new PemContent instance containing the given text.
Link copied to clipboard
open fun toString(): String