com.ibm.crypto.hdwrCCA.provider
Class RACF
- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.RACF
-
public class RACF extends java.lang.ObjectThis class represents a RACF object which contains the contents of a keyring. This class is an interface to the JNI code for performing the key ring reading and storing the records.
-
-
Field Summary
Fields Modifier and Type Field and Description booleandebugstatic booleanIsAvailablestatic intRACF_CERTAUTHstatic intRACF_DH_KEYstatic intRACF_DSA_KEYstatic intRACF_ICSF_KEYstatic intRACF_PCICC_KEYstatic intRACF_PERSONALstatic intRACF_PKDS_ECC_KEYstatic intRACF_SOFTWARE_ECC_KEYstatic intRACF_SOFTWARE_KEYstatic intRACF_TKDS_DSA_KEYstatic intRACF_TKDS_ECC_KEYstatic intRACF_TKDS_RSA_KEY
-
Constructor Summary
Constructors Constructor and Description RACF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.HashtablegetRACFHashtable()Return the hash table which contains the key ring records.intgetRecords(java.lang.String userid, java.lang.String alias, java.lang.String ringid)Get the records from the key ring.booleanisTrusted(java.lang.String userid, java.lang.String ringid, byte[] cert)Check if the certificate is trusted.intputRecords(RACFResults results, byte[] useridbytes, byte[] ringidbytes, int numDeleteRecords, int numPutRecords, byte[] recordsbytes)Put the records into the key ring.voidsetDebug(boolean dbg)Turn tracing on or off for the native methods.voidTestLibrary()Test if the DLL for reading the keyring is available.
-
-
-
Field Detail
-
RACF_SOFTWARE_KEY
public static final int RACF_SOFTWARE_KEY
- See Also:
- Constant Field Values
-
RACF_ICSF_KEY
public static final int RACF_ICSF_KEY
- See Also:
- Constant Field Values
-
RACF_PCICC_KEY
public static final int RACF_PCICC_KEY
- See Also:
- Constant Field Values
-
RACF_DSA_KEY
public static final int RACF_DSA_KEY
- See Also:
- Constant Field Values
-
RACF_DH_KEY
public static final int RACF_DH_KEY
- See Also:
- Constant Field Values
-
RACF_SOFTWARE_ECC_KEY
public static final int RACF_SOFTWARE_ECC_KEY
- See Also:
- Constant Field Values
-
RACF_PKDS_ECC_KEY
public static final int RACF_PKDS_ECC_KEY
- See Also:
- Constant Field Values
-
RACF_TKDS_RSA_KEY
public static final int RACF_TKDS_RSA_KEY
- See Also:
- Constant Field Values
-
RACF_TKDS_ECC_KEY
public static final int RACF_TKDS_ECC_KEY
- See Also:
- Constant Field Values
-
RACF_TKDS_DSA_KEY
public static final int RACF_TKDS_DSA_KEY
- See Also:
- Constant Field Values
-
RACF_CERTAUTH
public static final int RACF_CERTAUTH
- See Also:
- Constant Field Values
-
RACF_PERSONAL
public static final int RACF_PERSONAL
- See Also:
- Constant Field Values
-
IsAvailable
public static boolean IsAvailable
-
debug
public boolean debug
-
-
Method Detail
-
TestLibrary
public void TestLibrary()
Test if the DLL for reading the keyring is available.
-
getRecords
public int getRecords(java.lang.String userid, java.lang.String alias, java.lang.String ringid)Get the records from the key ring.- Parameters:
userid- the userid of the key ring owneralias- the name of the certificate to be retrievedringid- the key ring to read
-
putRecords
public int putRecords(RACFResults results, byte[] useridbytes, byte[] ringidbytes, int numDeleteRecords, int numPutRecords, byte[] recordsbytes)
Put the records into the key ring.- Parameters:
results- the results are written back to this objectuseridbytes- the userid of the key ring ownerringidbytes- the key ring to writenumDeleteRecords- number of delete recordsnumPutRecords- number of put recordsrecordsbytes- containing certificates and keys to write to RACF
-
isTrusted
public boolean isTrusted(java.lang.String userid, java.lang.String ringid, byte[] cert)Check if the certificate is trusted.- Parameters:
userid- the userid of the key ring ownerringid- the key ring which contains the certificatecert- the certificate to be checked for trust status
-
getRACFHashtable
public java.util.Hashtable getRACFHashtable()
Return the hash table which contains the key ring records.- Returns:
- the key ring entries
-
setDebug
public void setDebug(boolean dbg)
Turn tracing on or off for the native methods.- Parameters:
dbg- true to turn tracing on and false to turn it off
-
-