This is an unsafe method and should not be used. It will be removed
at the next MAJOR release of vSphere

@throws NoSuchAlgorithmException
@throws KeyManagementException
@deprecated
199897
@Deprecated
    public static void trustAllHttpsCertificates() throws NoSuchAlgorithmException, KeyManagementException {
        TrustManager[] trustAllCerts = new TrustManager[1];
        trustAllCerts[0] = new TrustAllManager();
        SSLContext sc = SSLContext.getInstance("SSL");
        sc.init(null, trustAllCerts, null);
        HttpsURLConnection.setDefaultSSLSocketFactory(
            sc.getSocketFactory());
    }
150595
public void removeKeyGroup(LocalQPConsumerKeyGroup keyGroup)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeKeyGroup", keyGroup);

    // Take the lock to prevent another thread from trying to add a member to
    // the group while we're removing it
    synchronized(_baseDestHandler.getReadyConsumerPointLock())
    {
      // Need to find the correct object to remove.
      Iterator keys = keyGroups.keySet().iterator();
      while (keys.hasNext())
      {
        Object key = keys.next();
        if (keyGroups.get(key).equals(keyGroup))
          keys.remove();
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeKeyGroup");
  }
412283
@Deprecated
	@Override
	public void remove(final WComponent item) {
		if (item instanceof MenuItem) {
			removeMenuItem((MenuItem) item);
		}
	}
36905
public void remove(int key) {
        int i = binarySearch(mKeys, 0, mSize, key);
        if (i >= 0 && mValues[i] != DELETED) {
            mValues[i] = DELETED;
            mGarbage = true;
        }
    }
989547
public void removeMember(JSConsumerKey key)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeMember", key);

    LocalQPConsumerKey anyKey = null;

    // We lock the CD so other members are not added/removed while
    // we do this
    synchronized(consumerDispatcher.getDestination().getReadyConsumerPointLock())
    {
      if(singleMember != null)
      {
        if(!(key.isSpecific()))
          generalMemberCount--;

        if(singleMember == key)
          singleMember = null;
        else
        {
          // We must be the only member
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "removeMember", "SIErrorException");
            throw new SIErrorException(
              nls.getFormattedMessage(
                "INTERNAL_MESSAGING_ERROR_CWSIP0001",
                new Object[] {
                  "com.ibm.ws.sib.processor.impl.LocalQPConsumerKeyGroup",
                  "1:453:1.6.1.14" },
                null));
        }
      }
      else
      {
        if(key.isSpecific())
          specificKeyMembers.remove(key);
        else
        {
          generalKeyMembers.remove(key);
          generalMemberCount--;
          // As we've modified the list we need a new iterator
          generalMemberIndex = 0;
        }
      }

      memberCount--;

      // If that was the last member, we can remove this group
      if(memberCount == 0)
      {
        consumerDispatcher.removeKeyGroup(this);
        // Drive finished against the set of cursors
        
        if(classifyingMessages)
        {
          // Take the classifications read lock
          consumerSet.takeClassificationReadLock();
          
          int numFilters = consumerKeyFilter.length;    
          for(int i=0;i<numFilters;i++)
            consumerKeyFilter[i].detach(); 

          // Free the classifications read lock
          consumerSet.freeClassificationReadLock();          
        }
        else
        {
          consumerKeyFilter[0].detach();  
        }
      }
      // If all the remaining members are started we can start receiving
      // messages again (we couldn't have been before because the member
      // was in stopped state.
      else if(memberCount == startedCount)
      {
        if(generalMemberCount > 0)
          anyKey = generalKeyMembers.get(0);
        else
          anyKey = specificKeyMembers.get(0);
      }
    } // synchronized

    //  Start the member up
    if(anyKey!=null)
      anyKey.getConsumerPoint().checkForMessages();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeMember");
  }
80770
public function clearKey($nsKey, $itemKey)
    {
        if ($this->hasKey($nsKey, $itemKey)) {
            $this->freeHandle($nsKey, $itemKey);
            unlink($this->path.'/'.$nsKey.'/'.$itemKey);
        }
    }
237887
@Override
    public final T remove() {
        // Short circuit using read-lock
        if (this.isEmpty()) {
            throw new NoSuchElementException();
        }

        final T e = this.poll();
        if (e == null) {
            throw new NoSuchElementException();
        }
        return e;
    }
954333
private KeyPair createKeyPair() throws NoSuchAlgorithmException {
		final KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
		final SecureRandom random  = SecureRandom.getInstance("SHA1PRNG");
		random.setSeed(Long.toString(System.currentTimeMillis()).getBytes());
		keyGen.initialize(2048, random);
		final KeyPair keypair = keyGen.generateKeyPair();
		return keypair;
	}
752570
public ParseException removeParseException( ResourceKey keyToRemove )
  {
    if( _lnf != null )
    {
      return (ParseException)removeParseIssue( keyToRemove, _lnf._parseExceptions );
    }
    return null;
  }
1084099
protected function cleanManagerSet()
    {
        foreach ($this->managerSet as $managerKey => $manager) {

            /** @var $manager \Thread */
            if (!$manager->isRunning()) {
                $this->getLogger()->debug("Daemon clean old manager : {$managerKey}", [__NAMESPACE__]);
                unset($this->managerSet[$managerKey]);
            }
        }

        return $this;
    }
1003183
public void setKeyManagerFactoryKeyStorePassword(String password) {
        if (password != null) {
            this.keyManagerFactoryKeyStorePassword = password.toCharArray();
        } else {
            this.keyManagerFactoryKeyStorePassword = null;
        }
    }
961929
public synchronized void close()
                    throws ObjectManagerException
    {
        // Invalidate out all ManagedObjects in inMemory Tokens to prevent them
        // from being used after shutdown.
        for (java.util.Iterator tokenIterator = inMemoryTokens.values().iterator(); tokenIterator.hasNext();) {
            java.lang.ref.Reference reference = (java.lang.ref.Reference) tokenIterator.next();
            if (reference != null) {
                Token token = (Token) reference.get();
                if (token != null)
                    token.invalidate();
            } // if (reference != null).
        } // for inMemoryTokens.

        // Help garbage collection. 
        inMemoryTokens.clear();
        inMemoryTokens = null;
    }
1005654
public function disableForeignKeys()
    {
        $this->getDisconnectRetry()->run(function () {
            $this->execute($this->_driver->disableForeignKeySQL())->closeCursor();
        });
    }
392341
@Deprecated
    public void setTicketKeys(byte[] keys) {
        if (keys.length % SessionTicketKey.TICKET_KEY_SIZE != 0) {
            throw new IllegalArgumentException("keys.length % " + SessionTicketKey.TICKET_KEY_SIZE  + " != 0");
        }
        SessionTicketKey[] tickets = new SessionTicketKey[keys.length / SessionTicketKey.TICKET_KEY_SIZE];
        for (int i = 0, a = 0; i < tickets.length; i++) {
            byte[] name = Arrays.copyOfRange(keys, a, SessionTicketKey.NAME_SIZE);
            a += SessionTicketKey.NAME_SIZE;
            byte[] hmacKey = Arrays.copyOfRange(keys, a, SessionTicketKey.HMAC_KEY_SIZE);
            i += SessionTicketKey.HMAC_KEY_SIZE;
            byte[] aesKey = Arrays.copyOfRange(keys, a, SessionTicketKey.AES_KEY_SIZE);
            a += SessionTicketKey.AES_KEY_SIZE;
            tickets[i] = new SessionTicketKey(name, hmacKey, aesKey);
        }
        Lock writerLock = context.ctxLock.writeLock();
        writerLock.lock();
        try {
            SSLContext.clearOptions(context.ctx, SSL.SSL_OP_NO_TICKET);
            SSLContext.setSessionTicketKeys(context.ctx, tickets);
        } finally {
            writerLock.unlock();
        }
    }
1145080
@Deprecated
    public static void setHost(HttpMessage message, String value) {
        message.headers().set(HttpHeaderNames.HOST, value);
    }
45864
public static void setTheManager() {
    if ("true".equalsIgnoreCase(System.getProperty(ACTIVATE_FLAG))) {
      if (!(System.getSecurityManager() instanceof DnsMonitorSecurityManager)) {
        System.setSecurityManager(theManager);
      }
    }
  }
1133544
private SSLSocketFactory setUpSSLContext() throws NoSuchAlgorithmException, KeyManagementException {
        SSLContext ctx = SSLContext.getInstance("SSL");
        ctx.init(null, new TrustManager[] { createPromptingTrustManager() }, null);
        return ctx.getSocketFactory();
    }