All Packages Class Hierarchy This Package Previous Next Index
Class semper.certappl.FingerprintHandler
java.lang.Object
|
+----semper.certappl.FingerprintHandler
- public class FingerprintHandler
- extends Object
This class offers functionalities for handling with fingerprints
-
FingerprintHandler()
- Constructor of class FingerprintHandler.
-
computeIt(String, CryptoKeyInfo, HashingAlgorithm)
- Class computeIt computes the fingerprint of trustedPK of CA determined
with its distinguished name "caDN".
-
readItFromFile(RandomAccessFile)
- Not implemented yet!
-
showItInTinguin(String, String, HashingAlgorithm)
- Class showItInTinguin shows an already computed fingerprint through
Tinguin display.
-
writeItToFile(String, String)
- Class writeItToFile writes an already computed fingerprint in a defined file.
FingerprintHandler
public FingerprintHandler()
- Constructor of class FingerprintHandler.
computeIt
public String computeIt(String caDN,
CryptoKeyInfo trustedPK,
HashingAlgorithm hashAlg) throws CertificateManException
- Class computeIt computes the fingerprint of trustedPK of CA determined
with its distinguished name "caDN".
- Parameters:
- caDN - = CA's distinguished name
- trustedPK - = public key of RA/CA which should be trusted.
- hashAlg - = Hash algorithm which is used to compute fingerprint of
trustedPK.
- Returns:
- fingerprint as a string.
- Throws: CertificateManException
- is thrown if computeIt class encountered
trouble.
showItInTinguin
public boolean showItInTinguin(String caDN,
String fingerPrint,
HashingAlgorithm hashAlg) throws CertificateManException
- Class showItInTinguin shows an already computed fingerprint through
Tinguin display.
- Parameters:
- caDN - = CA's distinguished name
- fingerprint - = fingerprint to shown.
- hashAlg - = Hash algorithm which is used to compute fingerprint of
trustedPK.
- Returns:
- boolean value.
- Throws: CertificateManException
- is thrown if showItInTinguin class
encountered trouble.
writeItToFile
public String writeItToFile(String fingerprint,
String filename) throws IOException
- Class writeItToFile writes an already computed fingerprint in a defined file.
- Parameters:
- fingerprint - = fingerprint to shown.
- filename - = Name of an RandomAccessFile the fingerprint should be
written into.
- Returns:
- fingerprint as a string.
- Throws: IOException
- is thrown if writeItToFile class
encountered trouble by creating new RandomAccessFile.
readItFromFile
public void readItFromFile(RandomAccessFile file)
- Not implemented yet!
All Packages Class Hierarchy This Package Previous Next Index