code: public GSSCredential createCredential(GSSName name,
  					  int lifetime,
  					  Oid mechs[],
  					  int usage)
  	throws GSSException {
  	if (mechs == null || mechs.length == 0) {
  	    return createCredential(name, lifetime, (Oid)null, usage);
  	} else {
  	    // XXX: not sure this is correct
  	    GSSCredential cred =
  		createCredential(name, lifetime, mechs[0], usage);
  	    for (int i = 1; i < mechs.length; i++) {
  		cred.add(name, lifetime, lifetime, mechs[i], usage);
  	    }
  	    return cred;
  	}
      }
docs: Acquires GSI GSS credentials.
  
  @see #createCredential(GSSName, int, Oid, int)