public void createAuthConfiguration(String name) throws AMConsoleException {
  if ((name == null) || (name.length() == 0)) {
    throw new AMConsoleException(getLocalizedString("authentication.config.missing.name"));
  }
  String[] params={currentRealm,name};
  logEvent("ATTEMPT_CREATE_AUTH_CONFIG",params);
  String errorMsg=null;
  try {
    AMAuthConfigUtils.createNamedConfig(name,0,new HashMap(),currentRealm,getUserSSOToken());
    logEvent("SUCCEED_CREATE_AUTH_CONFIG",params);
  }
 catch (  SMSException e) {
    errorMsg=getErrorString(e);
    String[] paramsEx={currentRealm,name,errorMsg};
    logEvent("SMS_EXCEPTION_CREATE_AUTH_CONFIG",paramsEx);
    debug.warning("problem creating auth instance",e);
  }
catch (  SSOException e) {
    errorMsg=getErrorString(e);
    String[] paramsEx={currentRealm,name,errorMsg};
    logEvent("SSO_EXCEPTION_CREATE_AUTH_CONFIG",paramsEx);
    debug.warning("problem creating auth instance",e);
  }
catch (  AMConfigurationException e) {
    errorMsg=getErrorString(e);
    String[] paramsEx={currentRealm,name,errorMsg};
    logEvent("AUTH_CONFIGURATION_EXCEPTION_CREATE_AUTH_CONFIG",paramsEx);
    debug.warning("problem creating auth instance",e);
  }
  if (errorMsg != null) {
    throw new AMConsoleException(errorMsg);
  }
}

public void createAuthConfiguration ( String name ) throws AMConsoleException { if ( ( name == null ) || ( name . length ( ) == 0 ) ) { throw new AMConsoleException ( getLocalizedString ( "authentication.config.missing.name" ) ) ; } String [ ] params = { currentRealm , name } ; logEvent ( "ATTEMPT_CREATE_AUTH_CONFIG" , params ) ; String errorMsg = null ; try { AMAuthConfigUtils . createNamedConfig ( name , 0 , new HashMap ( ) , currentRealm , getUserSSOToken ( ) ) ; logEvent ( "SUCCEED_CREATE_AUTH_CONFIG" , params ) ; } catch ( SMSException e ) { errorMsg = getErrorString ( e ) ; String [ ] paramsEx = { currentRealm , name , errorMsg } ; logEvent ( "SMS_EXCEPTION_CREATE_AUTH_CONFIG" , paramsEx ) ; debug . warning ( "problem creating auth instance" , e ) ; } catch ( SSOException e ) { errorMsg = getErrorString ( e ) ; String [ ] paramsEx = { currentRealm , name , errorMsg } ; logEvent ( "SSO_EXCEPTION_CREATE_AUTH_CONFIG" , paramsEx ) ; debug . warning ( "problem creating auth instance" , e ) ; } catch ( AMConfigurationException e ) { errorMsg = getErrorString ( e ) ; String [ ] paramsEx = { currentRealm , name , errorMsg } ; logEvent ( "AUTH_CONFIGURATION_EXCEPTION_CREATE_AUTH_CONFIG" , paramsEx ) ; debug . warning ( "problem creating auth instance" , e ) ; } if ( errorMsg != null ) { throw new AMConsoleException ( errorMsg ) ; } }
creates a new named authentication configuration object . this object will be used by the various objects for authentication .
