| Modifier and Type | Field and Description |
|---|---|
| private final CMSProcessable | |
| private final ASN1ObjectIdentifier | |
| protected final AlgorithmIdentifier | |
| protected final AlgorithmIdentifier | |
| protected final SignerInfo | |
| private final boolean | |
| private byte[] | |
| private final SignerId | |
| private final byte[] | |
| protected final ASN1Set | |
| private AttributeTable | |
| protected final ASN1Set | |
| private AttributeTable |
| Access | Constructor and Description |
|---|---|
| pack-priv | SignerInformation(SignerInfo info, ASN1ObjectIdentifier contentType, CMSProcessable content, byte[] resultDigest)
|
| protected | SignerInformation(SignerInformation
the SignerInformation to base this one on. baseInfo)Protected constructor. |
| protected | SignerInformation(SignerInformation
the SignerInformation to base this one on. baseInfo, SignerInfo the SignerInfo to associate with the existing baseInfo data. info)Protected constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public static SignerInformation | Returns: a copy of the original SignerInformationObject with the changed attributes.the signerInfo to be used as the basis. signerInformation, SignerInformationStore signer info objects carrying counter signature. counterSigners)Return a signer information object with passed in SignerInformationStore representing counter signatures attached as an unsigned attribute. |
| private boolean | |
| public byte[] | |
| public ASN1ObjectIdentifier | |
| public SignerInformationStore | getCounterSignatures()
Return a SignerInformationStore containing the counter signatures attached to this signer. |
| public String | |
| public AlgorithmIdentifier | |
| public byte[] | |
| public byte[] | |
| public String | |
| public byte[] | getEncryptionAlgParams()
return the signature/encryption algorithm parameters, or null if there aren't any. |
| public SignerId | |
| public byte[] | |
| public AttributeTable | |
| private Time | |
| private ASN1Primitive | |
| public AttributeTable | getUnsignedAttributes()
return a table of the unsigned attributes indexed by the OID of the attribute. |
| public int | |
| public boolean | |
| public static SignerInformation | Returns: a copy of the original SignerInformationObject with the changed attributes.the signerInfo to be used as the basis. signerInformation, AttributeTable the unsigned attributes to add. unsignedAttributes)Return a signer information object with the passed in unsigned attributes replacing the ones that are current associated with the object passed in. |
| public SignerInfo | Returns: a SignerInfo.Return the underlying ASN.1 object defining this SignerInformation object. |
| private static AlgorithmIdentifier | translateBrokenRSAPkcs7(AlgorithmIdentifier encryptionAlgorithm, AlgorithmIdentifier digestAlgorithm)
|
| public boolean | Returns: true if the signer information is verified, false otherwise.a suitably configured SignerInformationVerifier. verifier)Verify that the given verifier can successfully verify the signature on this SignerInformation object. |
| private void | verifyAlgorithmIdentifierProtectionAttribute(AttributeTable
signed attributes signedAttrTable)RFC 6211 Validate Algorithm Identifier protection attribute if present |
| private void | |
| private void | verifyCounterSignatureAttribute(AttributeTable
signed attributes signedAttrTable)RFC 3852 11.4 Validate countersignature attribute(s) |
| private void |
| content | back to summary |
|---|---|
| private final CMSProcessable content | |
| contentType | back to summary |
|---|---|
| private final ASN1ObjectIdentifier contentType | |
| digestAlgorithm | back to summary |
|---|---|
| protected final AlgorithmIdentifier digestAlgorithm | |
| encryptionAlgorithm | back to summary |
|---|---|
| protected final AlgorithmIdentifier encryptionAlgorithm | |
| info | back to summary |
|---|---|
| protected final SignerInfo info | |
| isCounterSignature | back to summary |
|---|---|
| private final boolean isCounterSignature | |
| resultDigest | back to summary |
|---|---|
| private byte[] resultDigest | |
| sid | back to summary |
|---|---|
| private final SignerId sid | |
| signature | back to summary |
|---|---|
| private final byte[] signature | |
| signedAttributeSet | back to summary |
|---|---|
| protected final ASN1Set signedAttributeSet | |
| signedAttributeValues | back to summary |
|---|---|
| private AttributeTable signedAttributeValues | |
| unsignedAttributeSet | back to summary |
|---|---|
| protected final ASN1Set unsignedAttributeSet | |
| unsignedAttributeValues | back to summary |
|---|---|
| private AttributeTable unsignedAttributeValues | |
| SignerInformation | back to summary |
|---|---|
| pack-priv SignerInformation(SignerInfo info, ASN1ObjectIdentifier contentType, CMSProcessable content, byte[] resultDigest) | |
| SignerInformation | back to summary |
|---|---|
| protected SignerInformation(SignerInformation baseInfo) Protected constructor. In some cases clients have their own idea about how to encode the signed attributes and calculate the signature. This constructor is to allow developers to deal with that by extending off the class and overriding methods like getSignedAttributes().
| |
| SignerInformation | back to summary |
|---|---|
| protected SignerInformation(SignerInformation baseInfo, SignerInfo info) Protected constructor. In some cases clients also have their own ideas about what goes in various SignerInfo fields. This constructor is to allow developers to deal with that by also tweaking the SignerInfo so that these issues can be dealt with.
| |
| addCounterSigners | back to summary |
|---|---|
| public static SignerInformation addCounterSigners(SignerInformation signerInformation, SignerInformationStore counterSigners) Return a signer information object with passed in SignerInformationStore representing counter signatures attached as an unsigned attribute.
| |
| doVerify | back to summary |
|---|---|
| private boolean doVerify(SignerInformationVerifier verifier) throws CMSException | |
| getContentDigest | back to summary |
|---|---|
| public byte[] getContentDigest() return the content digest that was calculated during verification. | |
| getContentType | back to summary |
|---|---|
| public ASN1ObjectIdentifier getContentType() | |
| getCounterSignatures | back to summary |
|---|---|
| public SignerInformationStore getCounterSignatures() Return a SignerInformationStore containing the counter signatures attached to this signer. If no counter signatures are present an empty store is returned. | |
| getDigestAlgOID | back to summary |
|---|---|
| public String getDigestAlgOID() return the object identifier for the signature. | |
| getDigestAlgorithmID | back to summary |
|---|---|
| public AlgorithmIdentifier getDigestAlgorithmID() | |
| getDigestAlgParams | back to summary |
|---|---|
| public byte[] getDigestAlgParams() return the signature parameters, or null if there aren't any. | |
| getEncodedSignedAttributes | back to summary |
|---|---|
| public byte[] getEncodedSignedAttributes() throws IOException return the DER encoding of the signed attributes.
| |
| getEncryptionAlgOID | back to summary |
|---|---|
| public String getEncryptionAlgOID() return the object identifier for the signature. | |
| getEncryptionAlgParams | back to summary |
|---|---|
| public byte[] getEncryptionAlgParams() return the signature/encryption algorithm parameters, or null if there aren't any. | |
| getSID | back to summary |
|---|---|
| public SignerId getSID() | |
| getSignature | back to summary |
|---|---|
| public byte[] getSignature() return the encoded signature | |
| getSignedAttributes | back to summary |
|---|---|
| public AttributeTable getSignedAttributes() return a table of the signed attributes - indexed by the OID of the attribute. | |
| getSigningTime | back to summary |
|---|---|
| private Time getSigningTime() throws CMSException | |
| getSingleValuedSignedAttribute | back to summary |
|---|---|
| private ASN1Primitive getSingleValuedSignedAttribute(ASN1ObjectIdentifier attrOID, String printableName) throws CMSException | |
| getUnsignedAttributes | back to summary |
|---|---|
| public AttributeTable getUnsignedAttributes() return a table of the unsigned attributes indexed by the OID of the attribute. | |
| getVersion | back to summary |
|---|---|
| public int getVersion() return the version number for this objects underlying SignerInfo structure. | |
| isCounterSignature | back to summary |
|---|---|
| public boolean isCounterSignature() | |
| replaceUnsignedAttributes | back to summary |
|---|---|
| public static SignerInformation replaceUnsignedAttributes(SignerInformation signerInformation, AttributeTable unsignedAttributes) Return a signer information object with the passed in unsigned attributes replacing the ones that are current associated with the object passed in.
| |
| toASN1Structure | back to summary |
|---|---|
| public SignerInfo toASN1Structure() Return the underlying ASN.1 object defining this SignerInformation object.
| |
| translateBrokenRSAPkcs7 | back to summary |
|---|---|
| private static AlgorithmIdentifier translateBrokenRSAPkcs7(AlgorithmIdentifier encryptionAlgorithm, AlgorithmIdentifier digestAlgorithm) | |
| verify | back to summary |
|---|---|
| public boolean verify(SignerInformationVerifier verifier) throws CMSException Verify that the given verifier can successfully verify the signature on this SignerInformation object.
| |
| verifyAlgorithmIdentifierProtectionAttribute | back to summary |
|---|---|
| private void verifyAlgorithmIdentifierProtectionAttribute(AttributeTable signedAttrTable) throws CMSException RFC 6211 Validate Algorithm Identifier protection attribute if present
| |
| verifyContentTypeAttributeValue | back to summary |
|---|---|
| private void verifyContentTypeAttributeValue() throws CMSException RFC 3852 11.1 Check the content-type attribute is correct
| |
| verifyCounterSignatureAttribute | back to summary |
|---|---|
| private void verifyCounterSignatureAttribute(AttributeTable signedAttrTable) throws CMSException RFC 3852 11.4 Validate countersignature attribute(s)
| |
| verifyMessageDigestAttribute | back to summary |
|---|---|
| private void verifyMessageDigestAttribute() throws CMSException RFC 3852 11.2 Check the message-digest attribute is correct
| |