CPD Results

The following document contains the results of PMD's CPD 6.29.0.

Duplications

File Line
org/bremersee/actuator/security/authentication/ActuatorSecurityAutoConfiguration.java 118
org/bremersee/actuator/security/authentication/ReactiveActuatorSecurityAutoConfiguration.java 120
this.passwordEncoderProvider = passwordEncoderProvider;
  }

  /**
   * Init.
   */
  @EventListener(ApplicationReadyEvent.class)
  @SuppressWarnings("DuplicatedCode")
  public void init() {
    final boolean hasJwkUriSet = StringUtils.hasText(actuatorAuthProperties.getJwkSetUri());
    log.info("\n"
            + "*********************************************************************************\n"
            + "* {}\n"
            + "*********************************************************************************\n"
            + "* enable = {}\n"
            + "* order = {}\n"
            + "* jwt = {}\n"
            + "* cors = {}\n"
            + "*********************************************************************************",
        ClassUtils.getUserClass(getClass()).getSimpleName(),
        actuatorAuthProperties.getEnable().name(),
        actuatorAuthProperties.getOrder(),
        hasJwkUriSet,
        actuatorAuthProperties.isEnableCors());
    if (hasJwkUriSet) {
      Assert.hasText(actuatorAuthProperties.getPasswordFlow().getTokenEndpoint(),
          "Token endpoint of actuator password flow must be present.");
      Assert.hasText(actuatorAuthProperties.getPasswordFlow().getClientId(),
          "Client ID of actuator password flow must be present.");
      Assert.notNull(actuatorAuthProperties.getPasswordFlow().getClientSecret(),
          "Client secret of actuator password flow must be present.");
    }
  }

  @Override