Package org.logevents.web
Class HostKeyStore
- java.lang.Object
-
- org.logevents.web.HostKeyStore
-
public class HostKeyStore extends Object
-
-
Constructor Summary
Constructors Constructor Description HostKeyStore(File file, String storePasswordString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateKey()
X509Certificate
getCertificate()
KeyManager[]
getKeyManagers()
boolean
isKeyPresent()
void
setHostName(String hostName)
void
setKeyPassword(String keyPassword)
void
writeCertificate(File file)
void
writeCertificate(Writer writer)
-
-
-
Constructor Detail
-
HostKeyStore
public HostKeyStore(File file, String storePasswordString) throws GeneralSecurityException, IOException
- Throws:
GeneralSecurityException
IOException
-
-
Method Detail
-
setHostName
public void setHostName(String hostName)
-
setKeyPassword
public void setKeyPassword(String keyPassword)
-
isKeyPresent
public boolean isKeyPresent() throws KeyStoreException
- Throws:
KeyStoreException
-
generateKey
public void generateKey() throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
writeCertificate
public void writeCertificate(File file) throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
writeCertificate
public void writeCertificate(Writer writer) throws KeyStoreException, IOException, CertificateEncodingException
-
getCertificate
public X509Certificate getCertificate() throws KeyStoreException
- Throws:
KeyStoreException
-
getKeyManagers
public KeyManager[] getKeyManagers() throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-