agave-systems/systems-core/src/main/java/org/iplantc/service/systems/model/RemoteConfig.java
/**
	 * Add an AuthConfig to the list of existing AuthConfigs. If
	 * a config is already present for the internal user associated 
	 * with this AuthConfig, it will be replaced with the new one.
	 * 
	 * @param authConfig
	 * @throws SystemArgumentException 
	 */
Add an AuthConfig to the list of existing AuthConfigs. If
a config is already present for the internal user associated
with this AuthConfig, it will be replaced with the new one.

@param authConfig
@throws SystemArgumentException
Add an AuthConfig to the list of existing AuthConfigs . If a config is already present for the internal user associated with this AuthConfig it will be replaced with the new one . @param authConfig @throws SystemArgumentException
public void addAuthConfig(AuthConfig authConfig) throws SystemArgumentException
	{
		if (authConfig == null) {
			return;
		} else if (getProtocol().accepts(authConfig.getType())) {
			authConfig.setRemoteConfig(this);
			this.authConfigs.remove(authConfig);
			this.authConfigs.add(authConfig);
		} else {
			throw new SystemArgumentException("Invalid '" + getType() + ".auth' configuration. " +
					"The '" + getType() + ".protocol' value of " + getProtocol() + " does not " +
					"support '" + getType() + ".auth.type' " + authConfig.getType());
		}
	}
public void addAuthConfig ( AuthConfig authConfig ) throws SystemArgumentException { if ( authConfig == null ) { return ; } else if ( getProtocol ( ) . accepts ( authConfig . getType ( ) ) ) { authConfig . setRemoteConfig ( this ) ; this . authConfigs . remove ( authConfig ) ; this . authConfigs . add ( authConfig ) ; } else { throw new SystemArgumentException ( "Invalid '" + getType ( ) + ".auth' configuration. " + "The '" + getType ( ) + ".protocol' value of " + getProtocol ( ) + " does not " + "support '" + getType ( ) + ".auth.type' " + authConfig . getType ( ) ) ; } }
Add an AuthConfig to the list of existing AuthConfigs.
Add an AuthConfig to the list of existing AuthConfigs .