Package org.bouncycastle.jcajce.provider.asymmetric

## Class COMPOSITE.KeyFactory

- java.lang.Object
- - java.security.KeyFactorySpi
  - - org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi
    - - org.bouncycastle.jcajce.provider.asymmetric.COMPOSITE.KeyFactory

- All Implemented Interfaces:
    `AsymmetricKeyInfoConverter`
  Enclosing class:
    COMPOSITE

      public static class COMPOSITE.KeyFactory
      extends BaseKeyFactorySpi

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `KeyFactory()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected java.security.Key` | `engineTranslateKey​(java.security.Key key)` |
    `java.security.PrivateKey` | `generatePrivate​(PrivateKeyInfo keyInfo)` |
    `java.security.PublicKey` | `generatePublic​(SubjectPublicKeyInfo keyInfo)` |

    - ### Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi

      `engineGeneratePrivate, engineGeneratePublic, engineGetKeySpec`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyFactory

          public KeyFactory()

  - ### Method Detail

    - #### engineTranslateKey

          protected java.security.Key engineTranslateKey​(java.security.Key key)
                                                  throws java.security.InvalidKeyException

      Specified by:
        `engineTranslateKey` in class `java.security.KeyFactorySpi`
      Throws:
        `java.security.InvalidKeyException`

    - #### generatePrivate

          public java.security.PrivateKey generatePrivate​(PrivateKeyInfo keyInfo)
                                                   throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### generatePublic

          public java.security.PublicKey generatePublic​(SubjectPublicKeyInfo keyInfo)
                                                 throws java.io.IOException

      Throws:
        `java.io.IOException`