base.jdbs.cryptography.asymmetric
Interface IAsymmetricCipher

All Known Implementing Classes:
RSAAsymmetricCipher

public interface IAsymmetricCipher

This interface offers facilities to sign and check the signature of files using asymmetric cryptography.

Author:
Guido Angelo Ingenito

Method Summary
 boolean checkSignature(java.io.File signedFile, java.io.File dataFile, PublicKey publicKey)
          This method offers a facility to check the signature of a file with asymmetric cryptography.
 void sign(java.io.File input, java.io.File output, PrivateKey privateKey)
          This method offers a facility to sign files with asymmetric cryptography.
 

Method Detail

sign

void sign(java.io.File input,
          java.io.File output,
          PrivateKey privateKey)
This method offers a facility to sign files with asymmetric cryptography.

Parameters:
input - The input file to be signed against an asymmetric private key.
output - The output file signed against the asymmetric private key.
privateKey - The private asymmetric key to use in the signing process.

checkSignature

boolean checkSignature(java.io.File signedFile,
                       java.io.File dataFile,
                       PublicKey publicKey)
This method offers a facility to check the signature of a file with asymmetric cryptography.

Parameters:
signedFile - The input file whose signature must be checked against an asymmetric public key.
dataFile - The input data file whose signature must be checked against an asymmetric public key.
publicKey - The public key to use in the check signature process.
Returns:
True if the input file is valid signed file against the public key, false otherwise.


Copyright © 2006 SF.net. All Rights Reserved.