package org.apereo.cas.configuration.model.core.standalone;

import lombok.Getter;
import lombok.Setter;

import java.io.File;
import java.io.Serializable;

/**
 * This is {@link StandaloneConfigurationProperties}. This class is only designed here
 * to allow the configuration binding logic to recognize the settings. In actuality, the fields
 * listed here are not used directly as they are directly accessed and fetched via the runtime
 * environment to bootstrap cas settings in form of a property source locator, etc.
 *
 * @author Misagh Moayyed
 * @since 5.3.0
 */
@Getter
@Setter
public class StandaloneConfigurationProperties implements Serializable {
    private static final long serialVersionUID = -7749293768878152908L;
    /**
     * Describes a directory path where CAS configuration may be found.
     */
    private File configurationDirectory;

    /**
     * Describes a file path where that contains the CAS properties in a single file.
     */
    private File configurationFile;

    /**
     * Configuration security settings used to encrypt/decrypt values.
     * Settings are typically expected to be provided via command-line properties
     * or system/environment variables as properties are bootstrapped and fetched.
     * They are placed here to allow CAS to recognize their validity when passed.
     */
    private StandaloneConfigurationSecurityProperties security = new StandaloneConfigurationSecurityProperties();

    @Getter
    @Setter
    public static class StandaloneConfigurationSecurityProperties implements Serializable {
        private static final long serialVersionUID = 8571848605614437022L;

        /**
         * Algorithm to use when deciphering settings.
         */
        private String alg;

        /**
         * Security provider to use when deciphering settings.
         */
        private String provider;

        /**
         * Total number of iterations to use when deciphering settings.
         */
        private long iteration;

        /**
         * Secret key/password to use when deciphering settings.
         */
        private String psw;
    }
}

@@ -1383,17 +1383,30 @@
 perties 
-s
+configurationS
 ecurity 

fix error in naming standalone.configurationSecurity properties (#3337)