SubjectPublicKeyInfoFactory (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.crypto.util

## Class SubjectPublicKeyInfoFactory

- java.lang.Object
- - org.bouncycastle.crypto.util.SubjectPublicKeyInfoFactory

-     public class SubjectPublicKeyInfoFactory
      extends java.lang.Object

  Factory to create ASN.1 subject public key info objects from lightweight public keys.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SubjectPublicKeyInfoFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SubjectPublicKeyInfo` | `createSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey)` Create a SubjectPublicKeyInfo public key.

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

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

- - ### Constructor Detail

    - #### SubjectPublicKeyInfoFactory

          public SubjectPublicKeyInfoFactory()

  - ### Method Detail

    - #### createSubjectPublicKeyInfo

          public static SubjectPublicKeyInfo createSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey)
                                                                 throws java.io.IOException

      Create a SubjectPublicKeyInfo public key.
      Parameters:
        `publicKey` - the SubjectPublicKeyInfo encoding
      Returns:
        the appropriate key parameter
      Throws:
        `java.io.IOException` - on an error encoding the key