code: public void setProtection(int protection) {
  
          switch(protection) {
          case GridFTPSession.PROTECTION_CLEAR:
              throw new IllegalArgumentException("Unsupported protection: " +
                                                 protection);
          case GridFTPSession.PROTECTION_SAFE:
          case GridFTPSession.PROTECTION_CONFIDENTIAL:
          case GridFTPSession.PROTECTION_PRIVATE:
              break;
          default:
              throw new IllegalArgumentException("Bad protection: " +
                                                 protection);
          }
  
          this.protection = protection;
      }
docs: Sets data channel protection level.
  
  @param protection should be
  {@link GridFTPSession#PROTECTION_CLEAR CLEAR},
  {@link GridFTPSession#PROTECTION_SAFE SAFE}, or
  {@link GridFTPSession#PROTECTION_PRIVATE PRIVATE}, or
  {@link GridFTPSession#PROTECTION_CONFIDENTIAL CONFIDENTIAL}.