| Constructor and Description |
|---|
PemReader() |
PemReader(Provider provider) |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
readPrivateKey(Reader reader)
Reads a private key from a PEM file.
|
PublicKey |
readPublicKey(Reader reader)
Reads a public key from a PEM file.
|
public PemReader()
public PemReader(Provider provider)
public PrivateKey readPrivateKey(Reader reader) throws CannotRetrieveKeyException
readPrivateKey in interface KeyReaderreader - source of the PEM dataCannotRetrieveKeyException - if the key cannot be read, parsed, or the algorithm is unknownpublic PublicKey readPublicKey(Reader reader) throws CannotRetrieveKeyException
readPublicKey in interface KeyReaderreader - source of the PEM dataCannotRetrieveKeyException - if the key cannot be read or parsedCopyright © 2017 Atlassian. All rights reserved.