code: @Override
      @SuppressWarnings("StringEquality")
      public Object getField(String name) throws UnresolvedException{
          if(name=="protocol")
              return getSession().getProtocol();
          else if(name=="cipher")
              return getSession().getCipherSuite();
          else if(name=="local")
              return new CertificateBean((X509Certificate)getSession().getLocalCertificates()[0]);
          else if(name=="peer"){
              try{
                  return new CertificateBean((X509Certificate)getSession().getPeerCertificates()[0]);
              }catch(SSLPeerUnverifiedException ex){
                  return null;
              }
          }else
              throw new UnresolvedException(name);
      }
docs: /*-------------------------------------------------[ Bean ]---------------------------------------------------