Module ibm.crypto.ibmjcehybrid
Class HybridRACFOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.ibm.crypto.ibmjcehybrid.provider.HybridRACFOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class HybridRACFOutputStream extends java.io.OutputStream
This class extends the OutputStream class and is for use by the JCEHYBRIDRACFKS keystore to write certificates and private keys into RACF.
-
-
Constructor Summary
Constructors Constructor Description HybridRACFOutputStream(java.lang.String userID, java.lang.String ringID, char[] passwd)
Constructs an instance of a HybridRACFOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getPassword()
Obtains the password associated with this HybridRACFOutputStream.java.lang.String
getRingid()
Obtains the keyring name associated with this HybridRACFOutputStream.java.lang.String
getUserid()
Obtains the userid associated with this HybridRACFOutputStream.void
write(int b)
This method does not actually write any data and is used for a placeholder only.
-
-
-
Constructor Detail
-
HybridRACFOutputStream
public HybridRACFOutputStream(java.lang.String userID, java.lang.String ringID, char[] passwd) throws java.io.IOException
Constructs an instance of a HybridRACFOutputStream. A HybridRACFOutputStream is used to write certificates and keys into a RACF Key Ring using the JCEHYBRIDRACFKS keystore type. If null is specified for the userID value the method defaults to use the userid associated with the callers address space.- Parameters:
userID
- a string containing the ID of the user that owns the keyring. If null is specified for the userID value the method defaults to use the userid associated with the callers address space.ringID
- a string containing the name of the RACF key ring.passwd
- a character array containing the password for the keystore. If null is specified for this parameter the password will default to the value "password". This parameter must exactly match what was specified on the HybridRACFInputStream that was used to open the keystore.- Throws:
java.io.IOException
-
-
Method Detail
-
getPassword
public char[] getPassword()
Obtains the password associated with this HybridRACFOutputStream.- Returns:
- char[] representing the password associated with this HybridRACFOutputStream.
-
getUserid
public java.lang.String getUserid()
Obtains the userid associated with this HybridRACFOutputStream.- Returns:
- String representing the userid associated with this HybridRACFOutputStream.
-
getRingid
public java.lang.String getRingid()
Obtains the keyring name associated with this HybridRACFOutputStream.- Returns:
- String representing the keyring name associated with this HybridRACFOutputStream.
-
write
public void write(int b)
This method does not actually write any data and is used for a placeholder only.- Specified by:
write
in classjava.io.OutputStream
-
-