code: protected void setGssMode(Object value)
          throws GSSException {
          if (!(value instanceof Integer)) {
              throw new GlobusGSSException(GSSException.FAILURE,
                                           GlobusGSSException.BAD_OPTION_TYPE,
                                           "badType",
                                           new Object [] {"GSS mode", Integer.class});
          }
          Integer v = (Integer)value;
          if (v == GSIConstants.MODE_GSI ||
              v == GSIConstants.MODE_SSL) {
              this.gssMode = v;
          } else {
              throw new GlobusGSSException(GSSException.FAILURE,
                                           GlobusGSSException.BAD_OPTION,
                                           "badGssMode");
          }
      }
docs: -----------------------------------