public class SSLUtils extends java.lang.Object
| Modifiers | Name | Description |
|---|---|---|
static int |
NOT_ENCRYPTED |
data is not encrypted |
static int |
NOT_ENOUGH_DATA |
Not enough data in buffer to parse the record length |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType) |
|
public void |
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s, java.net.Socket socket) |
|
public void |
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s, javax.net.ssl.SSLEngine sslEngine) |
|
public void |
checkServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType) |
|
public void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s, java.net.Socket socket) |
|
public void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s, javax.net.ssl.SSLEngine sslEngine) |
|
public java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
|
public static int |
getEncryptedPacketLength(ByteBuf buffer) |
|
public static int |
getEncryptedPacketLength(ByteBuf buffer, int offset)Return the length in bytes of an SSL/TLS packet, contained in a buffer. |
|
public static java.lang.String |
getKeyStorePassword()Returns KeyStore Password specified in the ReadyAPI Preferences or in the ReadyAPI system properties |
|
public static java.lang.String |
getKeyStoreUrl()Returns KeyStore URL specified in the ReadyAPI Preferences or in the ReadyAPI system properties |
|
public static java.security.KeyStore |
getReadyApiKeystore()Loads and returns key store based on the ReadyAPI Preferences and ReadyAPI system properties. |
|
public static java.security.KeyStore |
getReadyApiKeystore(Logger logger)Loads and returns key store based on the ReadyAPI Preferences and ReadyAPI system properties. |
|
public static java.util.Optional<java.lang.String> |
getSNIValue(ByteBuf buffer)Extracts the Server Name Identifier extension value from a Client Hello TLS packet. |
|
public static javax.net.ssl.X509ExtendedTrustManager |
getTrustAllManager()Returns a TrustManager which trusts all certificates |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
data is not encrypted
Not enough data in buffer to parse the record length
Return the length in bytes of an SSL/TLS packet, contained in a buffer. This implementation is "borrwed" from io.netty.handler.ssl.SslHandler, where the same method is package-protected.
buffer - the buffer holding the dataoffset - the offset of the first byte of the packetReturns KeyStore Password specified in the ReadyAPI Preferences or in the ReadyAPI system properties
Returns KeyStore URL specified in the ReadyAPI Preferences or in the ReadyAPI system properties
Loads and returns key store based on the ReadyAPI Preferences and ReadyAPI system properties.
Loads and returns key store based on the ReadyAPI Preferences and ReadyAPI system properties.
Extracts the Server Name Identifier extension value from a Client Hello TLS packet. Only the first
host name is returned. Note that the host name is not checked contain a valid domain name.
It is assumed that the packet has been fully read inside buffer and the buffer's readerIndex() points
to the first byte of the packet.
Returns a TrustManager which trusts all certificates