// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_security_KeyFactory__
#define __java_security_KeyFactory__

#pragma interface

#include <java/lang/Object.h>

extern "Java"
{
  namespace java
  {
    namespace security
    {
      class Key;
      class PrivateKey;
      class PublicKey;
      namespace spec
      {
        class KeySpec;
      }
      class KeyFactory;
      class Provider;
      class KeyFactorySpi;
    }
  }
};

class ::java::security::KeyFactory : public ::java::lang::Object
{
public:  // actually protected
  KeyFactory (::java::security::KeyFactorySpi *, ::java::security::Provider *, ::java::lang::String *);
public:
  static ::java::security::KeyFactory *getInstance (::java::lang::String *);
  static ::java::security::KeyFactory *getInstance (::java::lang::String *, ::java::lang::String *);
private:
  static ::java::security::KeyFactory *getInstance (::java::lang::String *, ::java::lang::String *, ::java::security::Provider *);
public:
  ::java::security::Provider *getProvider () { return provider; }
  ::java::lang::String *getAlgorithm () { return algorithm; }
  ::java::security::PublicKey *generatePublic (::java::security::spec::KeySpec *);
  ::java::security::PrivateKey *generatePrivate (::java::security::spec::KeySpec *);
  ::java::security::spec::KeySpec *getKeySpec (::java::security::Key *, ::java::lang::Class *);
  ::java::security::Key *translateKey (::java::security::Key *);
private:
  ::java::security::KeyFactorySpi *keyFacSpi;
  ::java::security::Provider *provider;
  ::java::lang::String *algorithm;
public:

  static ::java::lang::Class class$;
};

#endif /* __java_security_KeyFactory__ */
