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

An unaggregating aggregated signer. More...

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

An unaggregating aggregated signer.

Signs each block individually using org.ccnx.ccn.protocol.ContentObject.sign(PrivateKey).


Member Function Documentation

void org.ccnx.ccn.impl.security.crypto.CCNBlockSigner.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 Fri May 13 16:27:41 2011 for Content-Centric Networking in Java by  doxygen 1.6.3