Table of Contents

Class CryptoUtil

Namespace
iText.Kernel.Crypto
Assembly
itext.kernel.dll

This file is a helper class for internal usage only. Be aware that it's API and functionality may be changed in future.

public static class CryptoUtil
Inheritance
CryptoUtil
Inherited Members

Methods

CreateAsn1OutputStream(Stream, string)

Creates instance which can be an implementation of one of the ASN1 encodings writing logic. This method also asserts for unexpected ASN1 encodings.

public static IDerOutputStream CreateAsn1OutputStream(Stream outputStream, string asn1Encoding)

Parameters

outputStream Stream

the underlying stream

asn1Encoding string

ASN1 encoding that will be used for writing. Only DER and BER are allowed as values.

Returns

IDerOutputStream

a instance. Exact stream implementation is chosen based on passed encoding.

Exceptions

NotSupportedException

ReadPublicCertificate(Stream)

public static IX509Certificate ReadPublicCertificate(Stream s)

Parameters

s Stream

Returns

IX509Certificate