C# Class iTextSharp.text.pdf.PdfPKCS7

ファイルを表示 Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method 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

Method 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 method

public static GetAlgorithm ( String oid ) : String
oid String
return String

GetAuthenticatedAttributeBytes() public method

public GetAuthenticatedAttributeBytes ( byte secondDigest, System.DateTime signingTime, byte ocsp ) : byte[]
secondDigest byte
signingTime System.DateTime
ocsp byte
return byte[]

GetDigest() public static method

public static GetDigest ( String oid ) : String
oid String
return String

GetDigestAlgorithm() public method

public GetDigestAlgorithm ( ) : String
return String

GetEncodedPKCS1() public method

public GetEncodedPKCS1 ( ) : byte[]
return byte[]

GetEncodedPKCS7() public method

public GetEncodedPKCS7 ( ) : byte[]
return byte[]

GetEncodedPKCS7() public method

public GetEncodedPKCS7 ( byte secondDigest, System.DateTime signingTime ) : byte[]
secondDigest byte
signingTime System.DateTime
return byte[]

GetEncodedPKCS7() public method

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

GetHashAlgorithm() public method

public GetHashAlgorithm ( ) : String
return String

GetIssuerFields() public static method

public static GetIssuerFields ( X509Certificate cert ) : X509Name
cert Org.BouncyCastle.X509.X509Certificate
return X509Name

GetOCSPURL() public static method

public static GetOCSPURL ( X509Certificate certificate ) : String
certificate Org.BouncyCastle.X509.X509Certificate
return String

GetSubjectFields() public static method

public static GetSubjectFields ( X509Certificate cert ) : X509Name
cert Org.BouncyCastle.X509.X509Certificate
return X509Name

IsRevocationValid() public method

public IsRevocationValid ( ) : bool
return bool

PdfPKCS7() public method

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
return System

PdfPKCS7() public method

public PdfPKCS7 ( byte contentsKey ) : System
contentsKey byte
return System

PdfPKCS7() public method

public PdfPKCS7 ( byte contentsKey, byte certsKey ) : System
contentsKey byte
certsKey byte
return System

SetExternalDigest() public method

public SetExternalDigest ( byte digest, byte RSAdata, String digestEncryptionAlgorithm ) : void
digest byte
RSAdata byte
digestEncryptionAlgorithm String
return void

Update() public method

public Update ( byte buf, int off, int len ) : void
buf byte
off int
len int
return void

Verify() public method

public Verify ( ) : bool
return bool

VerifyCertificate() public static method

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

VerifyCertificates() public static method

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
return Object[]

VerifyOcspCertificates() public static method

public static VerifyOcspCertificates ( BasicOcspResp ocsp, ArrayList keystore ) : bool
ocsp BasicOcspResp
keystore System.Collections.ArrayList
return bool

VerifyTimestampCertificates() public static method

public static VerifyTimestampCertificates ( TimeStampToken ts, ArrayList keystore ) : bool
ts TimeStampToken
keystore System.Collections.ArrayList
return bool

VerifyTimestampImprint() public method

public VerifyTimestampImprint ( ) : bool
return bool