org.eparapher.core.crypto.keystore
Class FileKeystore

java.lang.Object
  extended by org.eparapher.core.crypto.keystore.GenericKeystore
      extended by org.eparapher.core.crypto.keystore.FileKeystore
All Implemented Interfaces:
IGenericStore, ITrustStore, IUserKeystore

public class FileKeystore
extends GenericKeystore
implements ITrustStore


Field Summary
 
Fields inherited from class org.eparapher.core.crypto.keystore.GenericKeystore
currentalias, currentaliasselected, currentPrivateKey, currentPublicKey, currentX509Certificate, currentX509CertificateChain, ks, loadedKeystore
 
Constructor Summary
FileKeystore(String keystore_type, String keystore_file)
           
 
Method Summary
 boolean exists()
          Check if Keystore file exists
static String getFileKeystoreType()
           
 String getKeystoreFileName()
           
 char[] getKSPassword()
           
 boolean initialize()
           
 boolean loadKeyStore()
           
 boolean loadKeyStore(String passphrase)
           
 boolean loadPrivateKey()
           
 boolean loadTrustStore()
           
 boolean saveKeyStore()
           
 boolean saveTrustStore()
           
 void setKeystoreFileName(String fileName)
           
 void setKSPassword(String pwd)
           
 
Methods inherited from class org.eparapher.core.crypto.keystore.GenericKeystore
autoSelectAlias, containsAlias, getDefaultAlias, getKeystore, getKeystoreEntries, getPrivateKey, getProviderName, getPublicKey, getTrustAnchors, getTrustedCertificates, getX509Certificate, getX509CertificateChain, isKeystoreLoaded, loadPrivateKey, loadPublicInformation, newcertificate, selectAlias, setDefaultAlias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eparapher.core.crypto.keystore.ITrustStore
getTrustedCertificates
 
Methods inherited from interface org.eparapher.core.crypto.keystore.IGenericStore
containsAlias, getKeystore, getProviderName, getTrustAnchors, loadPrivateKey, loadPublicInformation, newcertificate
 

Constructor Detail

FileKeystore

public FileKeystore(String keystore_type,
                    String keystore_file)
Method Detail

loadKeyStore

public boolean loadKeyStore()
Specified by:
loadKeyStore in interface IGenericStore

loadKeyStore

public boolean loadKeyStore(String passphrase)
Specified by:
loadKeyStore in interface IGenericStore

getKeystoreFileName

public String getKeystoreFileName()

setKeystoreFileName

public void setKeystoreFileName(String fileName)

loadPrivateKey

public boolean loadPrivateKey()
Specified by:
loadPrivateKey in interface IGenericStore

loadTrustStore

public boolean loadTrustStore()
Specified by:
loadTrustStore in interface ITrustStore

saveTrustStore

public boolean saveTrustStore()
Specified by:
saveTrustStore in interface ITrustStore

saveKeyStore

public boolean saveKeyStore()
Specified by:
saveKeyStore in interface IGenericStore

getKSPassword

public char[] getKSPassword()

setKSPassword

public void setKSPassword(String pwd)

exists

public boolean exists()
Check if Keystore file exists

Specified by:
exists in interface IUserKeystore

initialize

public boolean initialize()
Specified by:
initialize in interface IUserKeystore

getFileKeystoreType

public static String getFileKeystoreType()


Copyright © 2009 eParapher Software Foundation. All Rights Reserved.