|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.cms.SignerInfo iaik.smime.SMimeSignerInfo
public class SMimeSignerInfo
Extends SignerInfo
to use a set of S/MIME
standard attributes.
When using this class to create a SignerInfo for a S/MIME message, automatically some standard attributes are added to the set of signed attributes. Depending on the constructor used for creating the SignerInfo, the following attributes are set:
Constructor Summary | |
---|---|
SMimeSignerInfo()
Default constructor. |
|
SMimeSignerInfo(X509Certificate signerCert,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given signerIdentifier, and digestAlgorithm ID, signature algorithmID, and the signer private key. |
|
SMimeSignerInfo(X509Certificate signerCert,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
java.security.PrivateKey privateKey,
X509Certificate encryptionCertOfSigner,
boolean includeEncryptionCertIDForMSOE)
Creates a new SignerInfo from given signerIdentifier, and digestAlgorithm ID, signature algorithmID, and the signer private key. |
|
SMimeSignerInfo(X509Certificate signerCert,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given SignerIdentifier, digestAlgorithm ID, and the signer private key. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SMimeSignerInfo() throws SMimeException
SignerInfo
object and sets the version number to 1, and the signature
algorithm ID to rsaEncryption.
The following attributes are set a signed attributes:
SMimeException
- if an error occurs when creating/setting the attributespublic SMimeSignerInfo(X509Certificate signerCert, AlgorithmID digestAlgorithm, java.security.PrivateKey privateKey) throws SMimeException
The signerIdentifier
identifies the signer certificate either
by issuer distinguished name and
issuer-specific serial number
or by SubjectKeyIdentifier
. The digestAlgorithm ID specifies the message digest
algorithm used for calculating the digest of the content and any signed
information. The private key is used for calculating the signature.
When using this constructor, the signature is calculated with the PKCS#1
rsaEncryption method.
The following attributes are set a signed attributes:
signerCert
- the certificate of the signerdigestAlgorithm
- the algorithm to be used for message digest calculationprivateKey
- the signer private key to be used for signing
SMimeException
- if an error occurs when creating/setting the attributespublic SMimeSignerInfo(X509Certificate signerCert, AlgorithmID digestAlgorithm, AlgorithmID signatureAlgorithm, java.security.PrivateKey privateKey) throws SMimeException
The signerIdentifier
identifies the signer certificate either
by issuer distinguished name and
issuer-specific serial number
or by SubjectKeyIdentifier
. The digestAlgorithm ID specifies the message digest
algorithm used for calculating the digest of the content and any signed
information. The private key is used for calculating the signature with
the given signature algorithm.
The following attributes are set a signed attributes:
signerCert
- the certificate of the signerdigestAlgorithm
- the algorithm to be used for message digest calculationsignatureAlgorithm
- the algorithm to be used for signature calculationprivateKey
- the signer private key to be used for signing
SMimeException
- if an error occurs when creating/setting the attributespublic SMimeSignerInfo(X509Certificate signerCert, AlgorithmID digestAlgorithm, AlgorithmID signatureAlgorithm, java.security.PrivateKey privateKey, X509Certificate encryptionCertOfSigner, boolean includeEncryptionCertIDForMSOE) throws SMimeException
The signerIdentifier
identifies the signer certificate either
by issuer distinguished name and
issuer-specific serial number
or by SubjectKeyIdentifier
. The digestAlgorithm ID specifies the message digest
algorithm used for calculating the digest of the content and any signed
information. The private key is used for calculating the signature with
the given signature algorithm.
The following attributes are set a signed attributes:
includeEncryptionCertIDForMSOE
is true
(this attribute is required by MSOE to recognize the encryption
certificate if different certs are used for signing and encryption)
signerCert
- the certificate of the signerdigestAlgorithm
- the algorithm to be used for message digest calculationsignatureAlgorithm
- the algorithm to be used for signature calculationprivateKey
- the signer private key to be used for signingencryptionCertOfSigner
- the encryption cert of the signer; if
not null, the SMIMEEncryptionKeyPreference attribute
will be included into the SignerInfoincludeEncryptionCertIDForMSOE
- if true
and the
encryption cert of the signer is provided, a private MS attribute will
be included allowing MSOE to recognize the encryption cert of the signer
if using different certs for signing/encryption
SMimeException
- if an error occurs when creating/setting the attributes
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |