Closeable, Flushable, Appendable, AutoCloseablepublic 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, waitgetOutputSizewriteObject, writeObjectpublic PEMWriter(File out) throws IOException
IOExceptionpublic PEMWriter(File out, String provider) throws IOException
IOExceptionpublic 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 PEMWriterIOExceptionpublic void writeObject(Object obj, PasswordFinder pwf) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic void writeObject(Object obj, String algorithm, PasswordFinder pwf) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic void writeObject(Object obj, String msg) throws NoSuchAlgorithmException, IOException, PasswordCancelledException
PasswordCachepublic void writeObject(Object obj, String algorithm, String msg) throws NoSuchAlgorithmException, IOException
PasswordCache specifying algorithmNoSuchAlgorithmExceptionIOExceptionpublic static void writeObject(File f, Object obj) throws IOException
IOExceptionpublic static void writeObject(File f, String provider, Object obj) throws IOException
IOExceptionpublic static void writeObject(File f, Object obj, String msg) throws NoSuchAlgorithmException, IOException, PasswordCancelledException
PasswordCachepublic static void writeObject(File f, Object obj, char[] pw) throws NoSuchAlgorithmException, IOException
Stores password in PasswordCache as well.
IOExceptionNoSuchAlgorithmExceptionCopyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.