java.lang.Object
java.io.OutputStream
com.ibm.crypto.hdwrCCA.provider.RACFOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
The RACFOutputStream extends OutputStream and is for use
by the JceRACFKeyStore to write certificates and private keys
to RACF.
-
Constructor Summary
ConstructorsConstructorDescriptionRACFOutputStream
(String userID, String ringid, char[] passwd) Constructs an instance of a RACFOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the RACFOutputStream.void
flush()
Flush the RACFOuputStream.void
write
(byte[] b) Write data to the RACFOutputStream from a byte array.void
write
(byte[] b, int off, int len) Write data to the RACFOutputStream from a byte array.void
write
(int b) Writes b.length bytes from the specified int to this output streamMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RACFOutputStream
Constructs an instance of a RACFOutputStream. A RACFOutputStream is used to write certificates and keys to a RACF Key Ring.- Parameters:
userID
- a string containing the ID of the user that owns the keyringringid
- a string containing the name of the RACF key ringpasswd
- a character array containing the password for the keystore- Throws:
IOException
- writing keys/certificates to the key ring.
-
-
Method Details
-
write
Writes b.length bytes from the specified int to this output stream- Specified by:
write
in classOutputStream
- Parameters:
b
- the data- Throws:
IOException
- if RACFOutputStream is closed
-
write
Write data to the RACFOutputStream from a byte array.- Overrides:
write
in classOutputStream
- Parameters:
b
- a byte array that will contain the data for the RACFInputStream- Throws:
IOException
- if RACFOutputStream is closed
-
write
Write data to the RACFOutputStream from a byte array.- Overrides:
write
in classOutputStream
- Parameters:
b
- a byte array that will contain the data for the RACFInputStreamoff
-len
-- Throws:
IOException
- if RACFOutputStream is closed
-
close
Close the RACFOutputStream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
Flush the RACFOuputStream. Parse the accumulated entries added from the RACF KeyStore into Entry objects. Then, write the entry object data into a buffer for the JNI code to parse.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-