PluginSecretService not available in Confluence DC

Hi,

I want to use the PluginSecretService in my Confluence Data Center App.

I followed this guide: https://developer.atlassian.com/server/framework/atlassian-sdk/plugin-secrets-service/

But when I specify the dependency as `provided` I get the usual osgi-wiring exception and the app won’t start up.

When I use `compile` scope and use a in the pom.xml then the app starts but I get the following error during runtime:

"service matching filter=[(objectClass=com.atlassian.secrets.api.plugins.PluginSecretService)] unavailable"

What am I doing wrong? I am running Confluence 10.

This is my pom.xml:

        <dependency>
            <groupId>com.atlassian.secrets</groupId>
            <artifactId>atlassian-secrets-public-api</artifactId>
            <version>6.1.1</version>
            <scope>provided</scope>
        </dependency>

...

                        <Import-Package>
                            com.atlassian.secrets.api.plugins.*,

And in my SpringBean Config I do as usual

    @Bean
    public PluginSecretService importPluginSecretService() { return importOsgiService(PluginSecretService.class); }

Is this service really available only Confluence 11+?

What is the Confluence 9/10 equivalent of the service then?

thanks

Is this service really available only Confluence 11+?

Yes

What is the Confluence 9/10 equivalent of the service then?

You could use ActiveObjects