Class RACF


  • public class RACF
    extends java.lang.Object
    This 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.
    • Constructor Detail

      • RACF

        public RACF()
        Constructor
    • 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 owner
        alias - the name of the certificate to be retrieved
        ringid - 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 object
        useridbytes - the userid of the key ring owner
        ringidbytes - the key ring to write
        numDeleteRecords - number of delete records
        numPutRecords - number of put records
        recordsbytes - 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 owner
        ringid - the key ring which contains the certificate
        cert - the certificate to be checked for trust status
      • getRACFHashtable

        public java.util.Hashtable<java.lang.String,​RACFObject> 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