Class SubjectPublicKeyInfoFactory

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

public class SubjectPublicKeyInfoFactory extends Object
Factory to create ASN.1 subject public key info objects from lightweight public keys.
  • Method Details

    • createSubjectPublicKeyInfo

      public static SubjectPublicKeyInfo createSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey) throws IOException
      Create a SubjectPublicKeyInfo public key.
      Parameters:
      publicKey - the key to be encoded into the info object.
      Returns:
      a SubjectPublicKeyInfo representing the key.
      Throws:
      IOException - on an error encoding the key