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

public Class PublicKeyFactory

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1BitString, .ASN1InputStream, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.asn1.bc.BCObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, 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.CMCEPublicKey, .KyberPublicKey, .McElieceCCA2PublicKey, .PQCObjectIdentifiers, .SPHINCS256KeyParams, .XMSSKeyParams, .XMSSMTKeyParams, .XMSSPublicKey, org.bouncycastle.pqc.crypto.bike.BIKEParameters, .BIKEPublicKeyParameters, org.bouncycastle.pqc.crypto.cmce.CMCEParameters, .CMCEPublicKeyParameters, org.bouncycastle.pqc.crypto.crystals.dilithium.DilithiumParameters, .DilithiumPublicKeyParameters, org.bouncycastle.pqc.crypto.falcon.FalconParameters, .FalconPublicKeyParameters, org.bouncycastle.pqc.crypto.frodo.FrodoParameters, .FrodoPublicKeyParameters, org.bouncycastle.pqc.crypto.hqc.HQCParameters, .HQCPublicKeyParameters, org.bouncycastle.pqc.crypto.lms.HSSPublicKeyParameters, .LMSKeyParameters, org.bouncycastle.pqc.crypto.mldsa.MLDSAParameters, .MLDSAPublicKeyParameters, org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters, .MLKEMPublicKeyParameters, org.bouncycastle.pqc.crypto.newhope.NHPublicKeyParameters, org.bouncycastle.pqc.crypto.ntru.NTRUParameters, .NTRUPublicKeyParameters, org.bouncycastle.pqc.crypto.ntruprime.NTRULPRimeParameters, .NTRULPRimePublicKeyParameters, .SNTRUPrimeParameters, .SNTRUPrimePublicKeyParameters, org.bouncycastle.pqc.crypto.picnic.PicnicParameters, .PicnicPublicKeyParameters, org.bouncycastle.pqc.crypto.rainbow.RainbowParameters, .RainbowPublicKeyParameters, org.bouncycastle.pqc.crypto.saber.SABERParameters, .SABERPublicKeyParameters, org.bouncycastle.pqc.crypto.slhdsa.SLHDSAParameters, .SLHDSAPublicKeyParameters, org.bouncycastle.pqc.crypto.sphincs.SPHINCSPublicKeyParameters, org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusParameters, .SPHINCSPlusPublicKeyParameters, org.bouncycastle.pqc.crypto.xmss.XMSSMTParameters, .XMSSMTPublicKeyParameters, .XMSSParameters, .XMSSPublicKeyParameters, org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2PublicKeyParameters, org.bouncycastle.pqc.legacy.crypto.qtesla.QTESLAPublicKeyParameters, org.bouncycastle.util.Arrays, .Pack

Factory to create asymmetric public key parameters for asymmetric ciphers from range of ASN.1 encoded SubjectPublicKeyInfo objects.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
pack-priv static class
private static class
private static class
private static class
private static class
private static class
private static class
pack-priv static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private abstract static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AsymmetricKeyParameter

Returns:

the appropriate key parameter
createKey
(byte[]
the SubjectPublicKeyInfo encoding
keyInfoData
)

Create a public key from a SubjectPublicKeyInfo encoding

public static AsymmetricKeyParameter

Returns:

the appropriate key parameter
createKey
(InputStream
the stream to read the SubjectPublicKeyInfo encoding from
inStr
)

Create a public key from a SubjectPublicKeyInfo encoding read from a stream

public static AsymmetricKeyParameter

Returns:

the appropriate key parameter
createKey
(SubjectPublicKeyInfo
the SubjectPublicKeyInfo containing the key data
keyInfo
)

Create a public key from the passed in SubjectPublicKeyInfo

public static AsymmetricKeyParameter

Returns:

the appropriate key parameter
createKey
(SubjectPublicKeyInfo
the SubjectPublicKeyInfo containing the key data
keyInfo
,
Object
default parameters that might be needed.
defaultParams
)

Create a public key from the passed in SubjectPublicKeyInfo

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait