Package org.wildfly.security.ssl
Class SSLExplorer.SSLConnectionInformationImpl
- java.lang.Object
-
- org.wildfly.security.ssl.SSLExplorer.SSLConnectionInformationImpl
-
- All Implemented Interfaces:
SSLConnectionInformation
- Enclosing class:
- SSLExplorer
static final class SSLExplorer.SSLConnectionInformationImpl extends Object implements SSLConnectionInformation
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>
alpnProtocols
private List<String>
ciphers
private String
helloVersion
private String
recordVersion
private List<SNIServerName>
sniNames
-
Constructor Summary
Constructors Constructor Description SSLConnectionInformationImpl(byte recordMajorVersion, byte recordMinorVersion, byte helloMajorVersion, byte helloMinorVersion, List<SNIServerName> sniNames, List<String> alpnProtocols, List<String> ciphers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCipherSuites()
Get the list of cipher suites that the client has requested.String
getHelloVersion()
Returns the hello version of an SSL/TLS connection.List<String>
getProtocols()
Get the ALPN protocol names of this connection (if any).String
getRecordVersion()
Returns the record version of an SSL/TLS connection.List<SNIServerName>
getSNIServerNames()
Get the SNI server names of this connection (if any)private static String
getVersionString(byte helloMajorVersion, byte helloMinorVersion)
private static String
unknownVersion(byte major, byte minor)
-
-
-
Method Detail
-
getVersionString
private static String getVersionString(byte helloMajorVersion, byte helloMinorVersion)
-
getRecordVersion
public String getRecordVersion()
Description copied from interface:SSLConnectionInformation
Returns the record version of an SSL/TLS connection.- Specified by:
getRecordVersion
in interfaceSSLConnectionInformation
- Returns:
- the record version (not
null
)
-
getHelloVersion
public String getHelloVersion()
Description copied from interface:SSLConnectionInformation
Returns the hello version of an SSL/TLS connection.- Specified by:
getHelloVersion
in interfaceSSLConnectionInformation
- Returns:
- the hello version (not
null
)
-
getSNIServerNames
public List<SNIServerName> getSNIServerNames()
Description copied from interface:SSLConnectionInformation
Get the SNI server names of this connection (if any)- Specified by:
getSNIServerNames
in interfaceSSLConnectionInformation
- Returns:
- the SNI server names of this connection, or an empty list if there are none
-
getProtocols
public List<String> getProtocols()
Description copied from interface:SSLConnectionInformation
Get the ALPN protocol names of this connection (if any).- Specified by:
getProtocols
in interfaceSSLConnectionInformation
- Returns:
- the ALPN protocol names of this connection, or an empty list if there are none
-
getCipherSuites
public List<String> getCipherSuites()
Description copied from interface:SSLConnectionInformation
Get the list of cipher suites that the client has requested.- Specified by:
getCipherSuites
in interfaceSSLConnectionInformation
- Returns:
- the list of cipher suites
-
unknownVersion
private static String unknownVersion(byte major, byte minor)
-
-