Code example for SSLSocket

Methods: getSession

0
    @Override 
    public String getCipherSuite() {
        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        } 
        return sslSocket.getSession().getCipherSuite();
    } 
 
    @Override 
    public Certificate[] getLocalCertificates() {
        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        } 
        return sslSocket.getSession().getLocalCertificates();
    } 
 
    @Override 
    public Certificate[] getServerCertificates()
            throws SSLPeerUnverifiedException { 
        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$