Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.util
Class SubjectPublicKeyInfoFactory

java.lang.Object
  extended by 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
SubjectPublicKeyInfoFactory()
           
 
Method Summary
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

Bouncy Castle Cryptography Library 1.49