org.ccnx.ccn.impl.security.crypto.CCNMerkleTreeSigner Class Reference

A CCNAggregatedSigner that builds a Merkle hash tree over a set of blocks and signs the root, incorporating the MerklePath information necessary to verify each object as the Witness component of the Signature. More...

Inheritance diagram for org.ccnx.ccn.impl.security.crypto.CCNMerkleTreeSigner:

org.ccnx.ccn.impl.security.crypto.CCNAggregatedSigner

List of all members.

Public Member Functions

void signBlocks (ContentObject[] contentObjects, PrivateKey signingKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, IOException
 Sign a set of unrelated content objects in one aggregated signature pass.


Detailed Description

A CCNAggregatedSigner that builds a Merkle hash tree over a set of blocks and signs the root, incorporating the MerklePath information necessary to verify each object as the Witness component of the Signature.

See also:
CCNMerkleTree

Member Function Documentation

void org.ccnx.ccn.impl.security.crypto.CCNMerkleTreeSigner.signBlocks ( ContentObject[]  contentObjects,
PrivateKey  signingKey 
) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, IOException

Sign a set of unrelated content objects in one aggregated signature pass.

Objects must have already been constructed and initialized. They must all indicate the same signer. Open questions:

  • should we re-set the publisherID? Currently assume that it was set to match the signing key when the blocks were built. This opens up the option to muck with the insides of COs more than ideal.
    Parameters:
    contentObjects the set of objects to sign
    signingKey the key to sign with
    Exceptions:
    InvalidKeyException if there is a problem with the signing key
    SignatureException if we have an error in signature generation
    NoSuchAlgorithmException if we do not recognize the default digest algorithm, or the signature algorithm associated with the key, or an internal algorithm used by the aggregating signer
    IOException 

Implements org.ccnx.ccn.impl.security.crypto.CCNAggregatedSigner.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:56 2012 for Content-Centric Networking in Java by  doxygen 1.5.6