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