it.haefelinger.flaka.util
Class InitSSL
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
it.haefelinger.flaka.Task
it.haefelinger.flaka.util.InitSSL
- All Implemented Interfaces:
- Cloneable
public class InitSSL
- extends Task
Utility class for configuring and testing JSSE for various JDKs
- Since:
- 1.0
- Author:
- merzedes
| Fields inherited from class it.haefelinger.flaka.Task |
debug, el |
| Methods inherited from class it.haefelinger.flaka.Task |
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn |
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
truststore
protected File truststore
verifycert
protected boolean verifycert
quiet
protected boolean quiet
InitSSL
public InitSSL()
setTrustStore
public void setTrustStore(File file)
setVerifyCertificate
public void setVerifyCertificate(boolean b)
setQuiet
public void setQuiet(boolean b)
isjava15
public static boolean isjava15()
install
public static void install(TrustManager tm)
throws Exception
- Throws:
Exception
useTrustStore
protected String useTrustStore(File f)
- Provide a full path to a keystore loc. This keystore will then be used for
* the verification of certificates provided by the server (assuming that
the * default TrustManager - which makes use of property
javax.net.ssl.trustStore - * is installed. * *
- Returns:
- previous value of javax.net.ssl.trustStore
hasTrustStore
protected boolean hasTrustStore()
getTrustStore
protected String getTrustStore()
getDefaultTrustStore
protected File getDefaultTrustStore()
execute
public void execute()
throws BuildException
- Overrides:
execute in class Task
- Throws:
BuildException