Create a Subject Public Key Info object for a given public key.

Namespace: Org.BouncyCastle.X509
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public static SubjectPublicKeyInfo CreateSubjectPublicKeyInfo(
	AsymmetricKeyParameter key
)
Visual Basic
Public Shared Function CreateSubjectPublicKeyInfo ( _
	key As AsymmetricKeyParameter _
) As SubjectPublicKeyInfo
Visual C++
public:
static SubjectPublicKeyInfo^ CreateSubjectPublicKeyInfo(
	AsymmetricKeyParameter^ key
)

Parameters

key
Type: Org.BouncyCastle.Crypto..::..AsymmetricKeyParameter
One of ElGammalPublicKeyParameters, DSAPublicKeyParameter, DHPublicKeyParameters, RsaKeyParameters or ECPublicKeyParameters

Return Value

A subject public key info object.

Exceptions

ExceptionCondition
System..::..ExceptionThrow exception if object provided is not one of the above.

See Also