Spring Boot, Set Up Spring Properties From Java Pojo not from application.properties

I have been struggling to set up spring boot properties programmatically. I know how to set up from application.properties file.

but I would like not to use the application.properties because in my use case application properties file is encrypted I mean the file itself is encrypted. (not the industry-standard way like data encryption). So I would like to read the encrypted file and set spring properites without saving the decrypted file on the server. I am able to decrypt and save in java object but i do not know how to set those properties for app.