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

public Class SubjectPublicKeyInfoFactory

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.util.HashSet, .Set, org.bouncycastle.asn1.ASN1Encodable, .ASN1Integer, .ASN1ObjectIdentifier, .DERNull, .DEROctetString, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, .GOST3410PublicKeyAlgParameters, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .RSAPublicKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DSAParameter, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X962Parameters, .X9ECParameters, .X9ECPoint, .X9ObjectIdentifiers, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .DSAParameters, .DSAPublicKeyParameters, .ECDomainParameters, .ECGOST3410Parameters, .ECNamedDomainParameters, .ECPublicKeyParameters, .Ed25519PublicKeyParameters, .Ed448PublicKeyParameters, .RSAKeyParameters, .X25519PublicKeyParameters, .X448PublicKeyParameters, org.bouncycastle.internal.asn1.edec.EdECObjectIdentifiers, org.bouncycastle.internal.asn1.rosstandart.RosstandartObjectIdentifiers

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

Field Summary

Modifier and TypeField and Description
private static Set<E>

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.

private static void
extractBytes(byte[] encKey, int size, int offSet, BigInteger bI)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoProOidsback to summary
private static Set<E> cryptoProOids

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
extractBytesback to summary
private static void extractBytes(byte[] encKey, int size, int offSet, BigInteger bI)