|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.security.VariableX509TrustManager
public final class VariableX509TrustManager
This class implements an X509 Trust Manager. The certificates it trusts are "variable", in the sense that it can dynamically, and temporarily support different certificates that are not in the keystore.
Constructor Summary | |
---|---|
VariableX509TrustManager()
Constructor initializes the system, user and custom stores |
Method Summary | |
---|---|
void |
checkTrustClient(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.lang.String hostName)
Check if client is trusted (no support for custom here, only system/user) |
void |
checkTrustServer(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.lang.String hostName,
javax.net.ssl.SSLSocket socket,
javax.net.ssl.SSLEngine engine)
Check if the server is trusted. |
protected java.security.cert.X509Certificate[] |
getAcceptedIssuers()
|
static VariableX509TrustManager |
getInstance()
Return an instance of this singleton |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableX509TrustManager()
Method Detail |
---|
public void checkTrustClient(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.lang.String hostName) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public void checkTrustServer(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.lang.String hostName, javax.net.ssl.SSLSocket socket, javax.net.ssl.SSLEngine engine) throws java.security.cert.CertificateException
chain
- The cert chainauthType
- The auth type algorithmhostName
- The expected hostName that the server should havesocket
- The SSLSocket in use (may be null)ending
- The SSLEngine in use (may be null)
java.security.cert.CertificateException
protected java.security.cert.X509Certificate[] getAcceptedIssuers()
public static VariableX509TrustManager getInstance()
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |