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