C# Class iTextSharp.text.pdf.PdfPKCS7

Afficher le fichier Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Méthodes publiques

Méthode Description
GetAlgorithm ( String oid ) : String
GetAuthenticatedAttributeBytes ( byte secondDigest, System.DateTime signingTime, byte ocsp ) : byte[]
GetDigest ( String oid ) : String
GetDigestAlgorithm ( ) : String
GetEncodedPKCS1 ( ) : byte[]
GetEncodedPKCS7 ( ) : byte[]
GetEncodedPKCS7 ( byte secondDigest, System.DateTime signingTime ) : byte[]
GetEncodedPKCS7 ( byte secondDigest, System.DateTime signingTime, ITSAClient tsaClient, byte ocsp ) : byte[]
GetHashAlgorithm ( ) : String
GetIssuerFields ( X509Certificate cert ) : X509Name
GetOCSPURL ( X509Certificate certificate ) : String
GetSubjectFields ( X509Certificate cert ) : X509Name
IsRevocationValid ( ) : bool
PdfPKCS7 ( ICipherParameters privKey, X509Certificate certChain, object crlList, String hashAlgorithm, bool hasRSAdata ) : System
PdfPKCS7 ( byte contentsKey ) : System
PdfPKCS7 ( byte contentsKey, byte certsKey ) : System
SetExternalDigest ( byte digest, byte RSAdata, String digestEncryptionAlgorithm ) : void
Update ( byte buf, int off, int len ) : void
Verify ( ) : bool
VerifyCertificate ( X509Certificate cert, object crls, System.DateTime calendar ) : String
VerifyCertificates ( X509Certificate certs, ArrayList keystore, object crls, System.DateTime calendar ) : Object[]
VerifyOcspCertificates ( BasicOcspResp ocsp, ArrayList keystore ) : bool
VerifyTimestampCertificates ( TimeStampToken ts, ArrayList keystore ) : bool
VerifyTimestampImprint ( ) : bool

Private Methods

Méthode Description
BuildUnauthenticatedAttributes ( byte timeStampToken ) : Asn1EncodableVector
CalcSignCertificateChain ( ) : void
FindOcsp ( Asn1Sequence seq ) : void
GetAuthenticatedAttributeSet ( byte secondDigest, System.DateTime signingTime, byte ocsp ) : DerSet
GetExtensionValue ( X509Certificate cert, String oid ) : Asn1Object
GetHashClass ( ) : IDigest
GetIssuer ( byte enc ) : Asn1Object
GetStringFromGeneralName ( Asn1Object names ) : String
GetSubject ( byte enc ) : Asn1Object
PdfPKCS7 ( ) : System

Method Details

GetAlgorithm() public static méthode

public static GetAlgorithm ( String oid ) : String
oid String
Résultat String

GetAuthenticatedAttributeBytes() public méthode

public GetAuthenticatedAttributeBytes ( byte secondDigest, System.DateTime signingTime, byte ocsp ) : byte[]
secondDigest byte
signingTime System.DateTime
ocsp byte
Résultat byte[]

GetDigest() public static méthode

public static GetDigest ( String oid ) : String
oid String
Résultat String

GetDigestAlgorithm() public méthode

public GetDigestAlgorithm ( ) : String
Résultat String

GetEncodedPKCS1() public méthode

public GetEncodedPKCS1 ( ) : byte[]
Résultat byte[]

GetEncodedPKCS7() public méthode

public GetEncodedPKCS7 ( ) : byte[]
Résultat byte[]

GetEncodedPKCS7() public méthode

public GetEncodedPKCS7 ( byte secondDigest, System.DateTime signingTime ) : byte[]
secondDigest byte
signingTime System.DateTime
Résultat byte[]

GetEncodedPKCS7() public méthode

public GetEncodedPKCS7 ( byte secondDigest, System.DateTime signingTime, ITSAClient tsaClient, byte ocsp ) : byte[]
secondDigest byte
signingTime System.DateTime
tsaClient ITSAClient
ocsp byte
Résultat byte[]

GetHashAlgorithm() public méthode

public GetHashAlgorithm ( ) : String
Résultat String

GetIssuerFields() public static méthode

public static GetIssuerFields ( X509Certificate cert ) : X509Name
cert Org.BouncyCastle.X509.X509Certificate
Résultat X509Name

GetOCSPURL() public static méthode

public static GetOCSPURL ( X509Certificate certificate ) : String
certificate Org.BouncyCastle.X509.X509Certificate
Résultat String

GetSubjectFields() public static méthode

public static GetSubjectFields ( X509Certificate cert ) : X509Name
cert Org.BouncyCastle.X509.X509Certificate
Résultat X509Name

IsRevocationValid() public méthode

public IsRevocationValid ( ) : bool
Résultat bool

PdfPKCS7() public méthode

public PdfPKCS7 ( ICipherParameters privKey, X509Certificate certChain, object crlList, String hashAlgorithm, bool hasRSAdata ) : System
privKey ICipherParameters
certChain Org.BouncyCastle.X509.X509Certificate
crlList object
hashAlgorithm String
hasRSAdata bool
Résultat System

PdfPKCS7() public méthode

public PdfPKCS7 ( byte contentsKey ) : System
contentsKey byte
Résultat System

PdfPKCS7() public méthode

public PdfPKCS7 ( byte contentsKey, byte certsKey ) : System
contentsKey byte
certsKey byte
Résultat System

SetExternalDigest() public méthode

public SetExternalDigest ( byte digest, byte RSAdata, String digestEncryptionAlgorithm ) : void
digest byte
RSAdata byte
digestEncryptionAlgorithm String
Résultat void

Update() public méthode

public Update ( byte buf, int off, int len ) : void
buf byte
off int
len int
Résultat void

Verify() public méthode

public Verify ( ) : bool
Résultat bool

VerifyCertificate() public static méthode

public static VerifyCertificate ( X509Certificate cert, object crls, System.DateTime calendar ) : String
cert Org.BouncyCastle.X509.X509Certificate
crls object
calendar System.DateTime
Résultat String

VerifyCertificates() public static méthode

public static VerifyCertificates ( X509Certificate certs, ArrayList keystore, object crls, System.DateTime calendar ) : Object[]
certs Org.BouncyCastle.X509.X509Certificate
keystore System.Collections.ArrayList
crls object
calendar System.DateTime
Résultat Object[]

VerifyOcspCertificates() public static méthode

public static VerifyOcspCertificates ( BasicOcspResp ocsp, ArrayList keystore ) : bool
ocsp BasicOcspResp
keystore System.Collections.ArrayList
Résultat bool

VerifyTimestampCertificates() public static méthode

public static VerifyTimestampCertificates ( TimeStampToken ts, ArrayList keystore ) : bool
ts TimeStampToken
keystore System.Collections.ArrayList
Résultat bool

VerifyTimestampImprint() public méthode

public VerifyTimestampImprint ( ) : bool
Résultat bool