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 TypeMethodDescriptionvoidclose()Close the RACFOutputStream.voidflush()Flush the RACFOuputStream.voidwrite(byte[] b) Write data to the RACFOutputStream from a byte array.voidwrite(byte[] b, int off, int len) Write data to the RACFOutputStream from a byte array.voidwrite(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:
writein classOutputStream- Parameters:
b- the data- Throws:
IOException- if RACFOutputStream is closed
-
write
Write data to the RACFOutputStream from a byte array.- Overrides:
writein 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:
writein 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein 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:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-