org.bouncycastle.cms
public class SignerInformation extends Object
Method Summary | |
---|---|
byte[] | getContentDigest()
return the content digest that was calculated during verification. |
String | getDigestAlgOID()
return the object identifier for the signature. |
byte[] | getDigestAlgParams()
return the signature parameters, or null if there aren't any. |
byte[] | getEncodedSignedAttributes()
return the DER encoding of the signed attributes. |
String | getEncryptionAlgOID()
return the object identifier for the signature. |
byte[] | getEncryptionAlgParams()
return the signature/encyrption algorithm parameters, or null if
there aren't any. |
byte[] | getSignature()
return the encoded signature |
AttributeTable | getSignedAttributes()
return a table of the signed attributes - indexed by
the OID of the attribute. |
SignerId | getSID() |
AttributeTable | getUnsignedAttributes()
return a table of the unsigned attributes indexed by
the OID of the attribute. |
int | getVersion()
return the version number for this objects underlying SignerInfo structure. |
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.
|
SignerInfo | toSignerInfo()
Return the base ASN.1 CMS structure that this object contains.
|
boolean | verify(PublicKey key, String sigProvider)
verify that the given public key succesfully handles and confirms the
signature associated with this signer. |
boolean | verify(X509Certificate cert, String sigProvider)
verify that the given certificate succesfully handles and confirms
the signature associated with this signer and, if a signingTime
attribute is available, that the certificate was valid at the time the
signature was generated. |
Throws: IOException if an encoding error occurs.
Parameters: signerInformation the signerInfo to be used as the basis. unsignedAttributes the unsigned attributes to add.
Returns: a copy of the original SignerInformationObject with the changed attributes.
Returns: an object containing a CMS SignerInfo structure.