AS400CertificateUtilImplNative.java :  » Net » jtopen-7.0 » com » ibm » as400 » access » Java Open Source

Java Open Source » Net » jtopen 7.0 
jtopen 7.0 » com » ibm » as400 » access » AS400CertificateUtilImplNative.java
///////////////////////////////////////////////////////////////////////////////
//                                                                             
// JTOpen (IBM Toolbox for Java - OSS version)                              
//                                                                             
// Filename: AS400CertificateUtilImplNative.java
//                                                                             
// The source code contained herein is licensed under the IBM Public License   
// Version 1.0, which has been approved by the Open Source Initiative.         
// Copyright (C) 1997-2000 International Business Machines Corporation and     
// others. All rights reserved.                                                
//                                                                             
///////////////////////////////////////////////////////////////////////////////

package com.ibm.as400.access;



/**
   <p>The AS400CertificateUtilImplNative provides the implementation of the native methods for accessing certificates from the AS400CertificateUtil object.
**/
class AS400CertificateUtilImplNative  extends AS400CertificateUtilImpl
{
  private static final String CLASSNAME = "com.ibm.as400.access.AS400CertificateUtilImplNative";
  static
  {
    if (Trace.traceOn_) Trace.logLoadPath(CLASSNAME);
  }

   // load the service program.
   static
   {
      try{
          System.load("/QSYS.LIB/QYJSPART.SRVPGM");
      } catch(Throwable e)
      {
              Trace.log(Trace.ERROR, "Error loading QYJSPART service program:", e); //may be that it is already loaded in multiple .war classloader
      }
   }




 //********************************************************************/
 //* native methods for direct local invocation                       */
 //*                                                                  */
 //* @return  Return code mapped to CPFxxxx error message.            */
 //********************************************************************/

  native int callgetCertificates(String usrSpaceName,
                        int buffSize,
                        int nextCertificateToReturn,
                        int nextCertificateOffsetIn);


  native int callgetHandle(byte[] certificate,
                   int len);


} // End of AS400CertificateUtilImplNative class





java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.