org.webdocwf.util.smime.cms
Class SignerInfos
java.lang.Object
|
+--org.webdocwf.util.smime.der.DERObject
|
+--org.webdocwf.util.smime.der.DERSetPr
|
+--org.webdocwf.util.smime.cms.SignerInfos
- public class SignerInfos
- extends DERSetPr
SignerInfos class is DER encoded container, represented in ASN.1 notation
according to RFC2630, used for storing individual information about each signer
of the signed message. Beside other information, SignerInfos class contains
signature of the message.
SignerInfos ::= SET OF SignerInfo
SignerInfo ::= SEQUENCE {
- version CMSVersion,
- sid SignerIdentifier,
- digestAlgorithm DigestAlgorithmIdentifier,
- signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL,
- signatureAlgorithm SignatureAlgorithmIdentifier,
- signature SignatureValue,
- unsignedAttrs [1] IMPLICIT UnsignedAttributes OPTIONAL }
Constructor Summary |
SignerInfos()
Constructs an empty SignerInfos container. |
Method Summary |
void |
addSigner(byte[] message0,
java.security.cert.X509Certificate cert0,
java.security.PrivateKey privKey0,
SignedAttributes sAttr0,
java.lang.String signedAlg0)
Adds particular signer to SignerInfos. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignerInfos
public SignerInfos()
throws SMIMEException
- Constructs an empty SignerInfos container.
- Throws:
SMIMEException
- thrown in super class constructor.
addSigner
public void addSigner(byte[] message0,
java.security.cert.X509Certificate cert0,
java.security.PrivateKey privKey0,
SignedAttributes sAttr0,
java.lang.String signedAlg0)
throws SMIMEException
- Adds particular signer to SignerInfos. This function must be performed at
least once.
- Parameters:
message0
- message which will be used in process of signing if
parameter sAttr0 is nullcert0
- owners certificateprivKey0
- owners private keysAttr0
- container for Signed AttributessignedAlg0
- specifies signing algorithm typedigestAlg0
- specifies digest algorithm type- Throws:
SMIMEException
- in case of missing owners certificates or
missing private keys. Also, exception could be thrown in super class
addContent method.
Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.