httpcommonlib/src/main/java/com/streamsets/pipeline/lib/http/SslConfigBean.java
public void init(Stage.Context context, String groupName, String prefix, List<Stage.ConfigIssue> issues) {
    if (!trustStorePath.isEmpty()) {
      if (Files.notExists(Paths.get(trustStorePath))) {
        issues.add(context.createConfigIssue(groupName, prefix + "trustStorePath", HTTP_04, trustStorePath));
      }

      try {
        if (trustStorePassword.get().isEmpty()) {
          issues.add(context.createConfigIssue(groupName, prefix + "trustStorePassword", HTTP_05));
        }
      } catch (StageException e) {
        issues.add(context.createConfigIssue(groupName, prefix + "trustStorePassword", HTTP_29, e.toString()));
      }

    }

    if (!keyStorePath.isEmpty()) {
      if (Files.notExists(Paths.get(keyStorePath))) {
        issues.add(context.createConfigIssue(groupName, prefix + "keyStorePath", HTTP_04, keyStorePath));
      }

      try {
        if (keyStorePassword.get().isEmpty()) {
          issues.add(context.createConfigIssue(groupName, prefix + "keyStorePassword", HTTP_05));
        }
      } catch (StageException e) {
        issues.add(context.createConfigIssue(groupName, prefix + "keyStorePassword", HTTP_29, e.toString()));
      }
    }
  }
public void init(Stage.Context context, String groupName, String prefix, List<Stage.ConfigIssue> issues) {
    if (!trustStorePath.isEmpty()) {
      if (Files.notExists(Paths.get(trustStorePath))) {
        issues.add(context.createConfigIssue(groupName, prefix + "trustStorePath", HTTP_04, trustStorePath));
      }

      try {
        if (trustStorePassword.get().isEmpty()) {
          issues.add(context.createConfigIssue(groupName, prefix + "trustStorePassword", HTTP_05));
        }
      } catch (StageException e) {
        issues.add(context.createConfigIssue(groupName, prefix + "trustStorePassword", HTTP_29, e.toString()));
      }

    }

    if (!keyStorePath.isEmpty()) {
      if (Files.notExists(Paths.get(keyStorePath))) {
        issues.add(context.createConfigIssue(groupName, prefix + "keyStorePath", HTTP_04, keyStorePath));
      }

      try {
        if (keyStorePassword.get().isEmpty()) {
          issues.add(context.createConfigIssue(groupName, prefix + "keyStorePassword", HTTP_05));
        }
      } catch (StageException e) {
        issues.add(context.createConfigIssue(groupName, prefix + "keyStorePassword", HTTP_29, e.toString()));
      }
    }
  }
public void init ( Stage . Context context , String groupName , String prefix , List < Stage . ConfigIssue > issues ) { if ( ! trustStorePath . isEmpty ( ) ) { if ( Files . notExists ( Paths . get ( trustStorePath ) ) ) { issues . add ( context . createConfigIssue ( groupName , prefix + "trustStorePath" , HTTP_04 , trustStorePath ) ) ; } try { if ( trustStorePassword . get ( ) . isEmpty ( ) ) { issues . add ( context . createConfigIssue ( groupName , prefix + "trustStorePassword" , HTTP_05 ) ) ; } } catch ( StageException e ) { issues . add ( context . createConfigIssue ( groupName , prefix + "trustStorePassword" , HTTP_29 , e . toString ( ) ) ) ; } } if ( ! keyStorePath . isEmpty ( ) ) { if ( Files . notExists ( Paths . get ( keyStorePath ) ) ) { issues . add ( context . createConfigIssue ( groupName , prefix + "keyStorePath" , HTTP_04 , keyStorePath ) ) ; } try { if ( keyStorePassword . get ( ) . isEmpty ( ) ) { issues . add ( context . createConfigIssue ( groupName , prefix + "keyStorePassword" , HTTP_05 ) ) ; } } catch ( StageException e ) { issues . add ( context . createConfigIssue ( groupName , prefix + "keyStorePassword" , HTTP_29 , e . toString ( ) ) ) ; } } }
Validates the parameters for this config bean.
@param context Stage Context
@param groupName Group name this bean is used in
@param prefix Prefix to the parameter names (e.g. parent beans)
@param issues List of issues to augment
Validates the parameters for this config bean .