PingAccess

SslData object reference

The SslData object provides access to information established in the TLS handshake with PingAccess.

Groovy sample

// Force TLS client authentication
def certChain = exc?.sslData?.clientCertificateChain
if(certChain && !certChain.isEmpty())
{
  pass();
}
else
{
  fail();
}

Method summary

Method Description

List<String> getSniServerNames()

Returns a list of server name indication (SNI) server_names sent by the user agent in the TLS handshake. Empty if the user agent did not utilize the SNI TLS extension.

List<java.security.cert.X509Certificate> getClientCertificateChain()

Returns the certificate chain presented by the user agent in the TLS handshake. Empty if the user agent did not utilize TLS client authentication.