base.jdbs.cryptography.asymmetric
Class RSAAsymmetricCipher

java.lang.Object
  extended by base.jdbs.cryptography.asymmetric.RSAAsymmetricCipher
All Implemented Interfaces:
IAsymmetricCipher

public class RSAAsymmetricCipher
extends java.lang.Object
implements IAsymmetricCipher


Constructor Summary
RSAAsymmetricCipher()
           
 
Method Summary
 boolean checkSignature(java.io.File signedInputFile, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAAsymmetricCipher

public RSAAsymmetricCipher()
Method Detail

sign

public void sign(java.io.File input,
                 java.io.File output,
                 PrivateKey privateKey)
Description copied from interface: IAsymmetricCipher
This method offers a facility to sign files with asymmetric cryptography.

Specified by:
sign in interface IAsymmetricCipher
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

public boolean checkSignature(java.io.File signedInputFile,
                              java.io.File dataFile,
                              PublicKey publicKey)
Description copied from interface: IAsymmetricCipher
This method offers a facility to check the signature of a file with asymmetric cryptography.

Specified by:
checkSignature in interface IAsymmetricCipher
Parameters:
signedInputFile - 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.