Should not throw an Exception, but instead return a zero-sized array. Also add some javadoc.
Add TLSUtils. Make it possible to set the enabled SSL/TLS protocols and ciphers and provide sane error reporting.