com.ibm.crypto.hdwrCCA.provider
Class RACFOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.ibm.crypto.hdwrCCA.provider.RACFOutputStream
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
public class RACFOutputStream extends java.io.OutputStreamThe RACFOutputStream extends OutputStream and is for use by the JceRACFKeyStore to write certificates and private keys to RACF.
-
-
Constructor Summary
Constructors Constructor and Description RACFOutputStream(java.lang.String userID, java.lang.String ringid, char[] passwd)Constructs an instance of a RACFOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()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 stream
-
-
-
Constructor Detail
-
RACFOutputStream
public RACFOutputStream(java.lang.String userID, java.lang.String ringid, char[] passwd) throws java.io.IOExceptionConstructs 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:
java.io.IOException- writing keys/certificates to the key ring.
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionWrites b.length bytes from the specified int to this output stream- Specified by:
writein classjava.io.OutputStream- Parameters:
b- the data- Throws:
java.io.IOException- if RACFOutputStream is closed
-
write
public void write(byte[] b) throws java.io.IOExceptionWrite data to the RACFOutputStream from a byte array.- Overrides:
writein classjava.io.OutputStream- Parameters:
b- a byte array that will contain the data for the RACFInputStream- Throws:
java.io.IOException- if RACFOutputStream is closed
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionWrite data to the RACFOutputStream from a byte array.- Overrides:
writein classjava.io.OutputStream- Parameters:
b- a byte array that will contain the data for the RACFInputStreamoff-len-- Throws:
java.io.IOException- if RACFOutputStream is closed
-
close
public void close() throws java.io.IOExceptionClose the RACFOutputStream.- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOExceptionFlush 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 interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
-