code: public boolean setAuthenticationMethod(int methodId, Authentication method) {
  		if (methodId < 0 || methodId > 255)
  			return false;
  		if (method == null) {
  			// Want to remove a particular method
  			return (authMethods.remove(new Integer(methodId)) != null);
  		} else {// Add the method, or rewrite old one
  			authMethods.put(new Integer(methodId), method);
  		}
  		return true;
  	}
docs: Adds another authentication method.
  
  @param methodId
  Authentication method id, see rfc1928
  @param method
  Implementation of Authentication
  @see Authentication