Closeable
, Flushable
, Appendable
, AutoCloseable
public class PEMWriter extends PEMWriter
PasswordCache
.Constructor | Description |
---|---|
PEMWriter(File out) |
Create PEMWriter for a file
|
PEMWriter(File out,
String provider) |
Create PEMWriter and specify provider
|
Modifier and Type | Method | Description |
---|---|---|
static void |
writeObject(File f,
Object obj) |
Write single object to PEM
|
static void |
writeObject(File f,
Object obj,
char[] pw) |
Wrote single object to PEM encrypted with specified password.
|
static void |
writeObject(File f,
Object obj,
String msg) |
Write single object to PEM encrypted using
PasswordCache |
static void |
writeObject(File f,
String provider,
Object obj) |
Write single object to PEM specifying provider
|
void |
writeObject(Object obj,
String msg) |
Write object to PEM encrypted using
PasswordCache |
void |
writeObject(Object obj,
String algorithm,
char[] password,
SecureRandom random) |
Write object encrypted to PEM encrypted.
|
void |
writeObject(Object obj,
String algorithm,
String msg) |
Write object to PEM encrypted using
PasswordCache specifying algorithm |
void |
writeObject(Object obj,
String algorithm,
PasswordFinder pwf) |
Write object to PEM encrypted specifying algorithm
|
void |
writeObject(Object obj,
PasswordFinder pwf) |
Write object to PEM encrypted
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOutputSize
writeObject, writeObject
public PEMWriter(File out) throws IOException
IOException
public PEMWriter(File out, String provider) throws IOException
IOException
public void writeObject(Object obj, String algorithm, char[] password, SecureRandom random) throws IOException
This sets the file permissions to user-accessible only when
the supplied object contains a private key. For the rest it
just calls its parent,
PEMWriter.writeObject(java.lang.Object)
.
writeObject
in class PEMWriter
IOException
public void writeObject(Object obj, PasswordFinder pwf) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
public void writeObject(Object obj, String algorithm, PasswordFinder pwf) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
public void writeObject(Object obj, String msg) throws NoSuchAlgorithmException, IOException, PasswordCancelledException
PasswordCache
public void writeObject(Object obj, String algorithm, String msg) throws NoSuchAlgorithmException, IOException
PasswordCache
specifying algorithmNoSuchAlgorithmException
IOException
public static void writeObject(File f, Object obj) throws IOException
IOException
public static void writeObject(File f, String provider, Object obj) throws IOException
IOException
public static void writeObject(File f, Object obj, String msg) throws NoSuchAlgorithmException, IOException, PasswordCancelledException
PasswordCache
public static void writeObject(File f, Object obj, char[] pw) throws NoSuchAlgorithmException, IOException
Stores password in PasswordCache
as well.
IOException
NoSuchAlgorithmException
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.