org.eparapher.core.crypto.keystore
Class FileKeystore
java.lang.Object
org.eparapher.core.crypto.keystore.GenericKeystore
org.eparapher.core.crypto.keystore.FileKeystore
- All Implemented Interfaces:
- IGenericStore, ITrustStore, IUserKeystore
public class FileKeystore
- extends GenericKeystore
- implements ITrustStore
| 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 |
FileKeystore
public FileKeystore(String keystore_type,
String keystore_file)
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.