Code example for SSLSocket

Methods: getSession

0
    } 
 
    @Override 
    public String getCipherSuite() {
        checkConnected(); 
        return sslSocket.getSession().getCipherSuite();
    } 
 
    @Override 
    public Certificate[] getLocalCertificates() {
        checkConnected(); 
        return sslSocket.getSession().getLocalCertificates();
    } 
 
    @Override 
    public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {
        checkConnected(); 
        return sslSocket.getSession().getPeerCertificates();
    } 
 
    @Override