Top Description Constructors Methods
org.bouncycastle.pqc.crypto.util

public Class SubjectPublicKeyInfoFactory

extends Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.DEROctetString, .DERSequence, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers, org.bouncycastle.pqc.asn1.McElieceCCA2PublicKey, .PQCObjectIdentifiers, .SPHINCS256KeyParams, .XMSSKeyParams, .XMSSMTKeyParams, .XMSSMTPublicKey, .XMSSPublicKey, org.bouncycastle.pqc.crypto.bike.BIKEPublicKeyParameters, org.bouncycastle.pqc.crypto.cmce.CMCEPublicKeyParameters, org.bouncycastle.pqc.crypto.crystals.dilithium.DilithiumPublicKeyParameters, org.bouncycastle.pqc.crypto.falcon.FalconPublicKeyParameters, org.bouncycastle.pqc.crypto.frodo.FrodoPublicKeyParameters, org.bouncycastle.pqc.crypto.hqc.HQCPublicKeyParameters, org.bouncycastle.pqc.crypto.lms.Composer, .HSSPublicKeyParameters, .LMSPublicKeyParameters, org.bouncycastle.pqc.crypto.mldsa.MLDSAPublicKeyParameters, org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters, org.bouncycastle.pqc.crypto.newhope.NHPublicKeyParameters, org.bouncycastle.pqc.crypto.ntru.NTRUPublicKeyParameters, org.bouncycastle.pqc.crypto.ntruprime.NTRULPRimePublicKeyParameters, .SNTRUPrimePublicKeyParameters, org.bouncycastle.pqc.crypto.picnic.PicnicPublicKeyParameters, org.bouncycastle.pqc.crypto.rainbow.RainbowPublicKeyParameters, org.bouncycastle.pqc.crypto.saber.SABERPublicKeyParameters, org.bouncycastle.pqc.crypto.slhdsa.SLHDSAPublicKeyParameters, org.bouncycastle.pqc.crypto.sphincs.SPHINCSPublicKeyParameters, org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusPublicKeyParameters, org.bouncycastle.pqc.crypto.xmss.XMSSMTPublicKeyParameters, .XMSSPublicKeyParameters, org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2PublicKeyParameters, org.bouncycastle.pqc.legacy.crypto.qtesla.QTESLAPublicKeyParameters

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SubjectPublicKeyInfo

Returns:

a SubjectPublicKeyInfo representing the key.
createSubjectPublicKeyInfo
(AsymmetricKeyParameter
the key to be encoded into the info object.
publicKey
)

Create a SubjectPublicKeyInfo public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SubjectPublicKeyInfoFactoryback to summary
private SubjectPublicKeyInfoFactory()

Method Detail

createSubjectPublicKeyInfoback to summary
public static SubjectPublicKeyInfo createSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey) throws IOException

Create a SubjectPublicKeyInfo public key.

Parameters
publicKey:AsymmetricKeyParameter

the key to be encoded into the info object.

Returns:SubjectPublicKeyInfo

a SubjectPublicKeyInfo representing the key.

Exceptions
IOException:
on an error encoding the key