public class PublicKeyWriter extends Object
PublicKeyWriter is a utility class for write public keys in files or streams.| Constructor and Description |
|---|
PublicKeyWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
write(PublicKey publicKey,
File file)
|
static void |
write(PublicKey publicKey,
OutputStream outputStream)
Write the given
PublicKey into the given OutputStream. |
static void |
writeInPemFormat(PublicKey publicKey,
File file)
|
public static void write(PublicKey publicKey, @NonNull File file) throws IOException
publicKey - the public keyfile - the file to write inIOException - Signals that an I/O exception has occurred.public static void write(PublicKey publicKey, @NonNull OutputStream outputStream) throws IOException
PublicKey into the given OutputStream.publicKey - the public keyoutputStream - the output stream to write inIOException - Signals that an I/O exception has occurred.public static void writeInPemFormat(PublicKey publicKey, @NonNull File file) throws IOException
publicKey - the public keyfile - the file to write inIOException - Signals that an I/O exception has occurred.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.