public final class TestSecureConnection extends Object
SecureConnection
designed
for test purposes only. TestSecureConnection performs minimal certificate validation when connecting to PingAccess.
It accepts self-signed certificates and only checks to see that the Subject DN and Issuer DN match the certificate in
the agent properties configuration. The lack of hostname verification makes it helpful for testing connections in
situations where the PingAccess agent listener certificate common name does not match the hostname of the system
PingAcess is running on. Do not use this in production!Constructor and Description |
---|
TestSecureConnection() |
Modifier and Type | Method and Description |
---|---|
HostnameVerifier |
getHostnameVerifier()
Gets a HostnameVerifier.
|
SSLContext |
getSSLContext(Exchange exchange)
Gets an SSLContext.
|
public HostnameVerifier getHostnameVerifier()
SecureConnection
public SSLContext getSSLContext(Exchange exchange) throws AgentException
SecureConnection
getSSLContext
in interface SecureConnection
AgentException
Copyright 2005-2015 Ping Identity Corp. All rights reserved.