|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdemo.smime.ess.SigningCertificateDemo
demo.smime.ess.SigningCertificateV2Demo
public class SigningCertificateV2Demo
Demonstrates how to add and parse a SigningCertificateV2 attribute to the SignerInfo of a SignedDataStream or
SignedData object. The SigningCertificateV2 attributes maybe used
to include certificate identification information into the signed attributes of a
CMS SignerInfo object. It has been introduced by
RFC 5035 to allow to use the SigningCertificate attribute with other hash algorithms than SHA-1.
SigningCertificate,
SigningCertificateV2,
SignerInfo,
SignedDataStream,
SignedData| Constructor Summary | |
|---|---|
SigningCertificateV2Demo()
Setups the demo certificate chains. |
|
| Method Summary | |
|---|---|
protected iaik.smime.ess.SigningCertificate |
createSigningCertificate(java.security.cert.Certificate[] certs)
Creates a SigningCertificateV2 attribute for the given certificates. |
protected iaik.smime.ess.SigningCertificate |
getSigningCertificate(iaik.cms.SignerInfo signerInfo)
Gets the SigningCertificateV2 attribute from the given SignerInfo. |
static void |
main(java.lang.String[] args)
The main method. |
protected void |
printHeader()
Prints some header lines to System.out. |
| Methods inherited from class demo.smime.ess.SigningCertificateDemo |
|---|
createAttributeCertificate, createSignedData, createSignedDataStream, getSignedData, getSignedDataStream, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SigningCertificateV2Demo()
throws java.io.IOException
java.io.IOException - if an file read error occurs| Method Detail |
|---|
protected iaik.smime.ess.SigningCertificate createSigningCertificate(java.security.cert.Certificate[] certs)
throws iaik.cms.CMSException
createSigningCertificate in class SigningCertificateDemocerts - the certificates for which to create the SigningCertificateV2
attribute
iaik.cms.CMSException - if an error occurs when creating the
SigningCertificateV2 attribute
protected iaik.smime.ess.SigningCertificate getSigningCertificate(iaik.cms.SignerInfo signerInfo)
throws iaik.cms.CMSException
getSigningCertificate in class SigningCertificateDemosignerInfo - the SignerInfo from which to get the
SigningCertificateV2 attribute
null
if no SigningCertificate attribute is included
iaik.cms.CMSException - if an error occurs when getting the
SigningCertificateV2 attributeprotected void printHeader()
printHeader in class SigningCertificateDemo
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.io.IOException - if an I/O error occurs when reading required keys
and certificates from files
java.lang.Exception
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|