I guess you can use either depending on your requirement because both are shipped by kernel.
On Sun, Jan 11, 2015 at 8:51 PM, Tharindu Edirisinghe <[email protected]> wrote: > Hi, > > I'm trying to add secure vault to some password properties and found > following two dependencies. I debugged the code using both dependencies and > found that the way we need to define which properties are secured differs. > > *Approach 1 : * > > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.securevault</artifactId> > <version>4.2.0</version> > </dependency> > > Secured property names have to be listed comma separated in a property > named protectedTokens. > > *protectedTokens=**Carbon.Security.KeyStore.Password,**Carbon.Security.KeyStore.Password* > > Apart from that, when creating the SecretResolver, create method accepts > properties and property_prifix as parameters. > > *SecretResolver secretResolver = SecretResolverFactory.create(properties, > "");* > > *Approach 2 : * > > <dependency> > <groupId>org.wso2.securevault</groupId> > <artifactId>org.wso2.securevault</artifactId> > <version>1.0.0-wso2v2</version> > </dependency> > > Secured properties should have the alias secretAlias. > > > *Carbon.Security.KeyStore.Password=secretAlias:Carbon.Security.KeyStore.Password**Carbon.Security.TrustStore.Password*=*secretAlias:Carbon.Security.KeyStore.Password* > > Apart from that, when creating the SecretResolver, create method accepts > properties only as the parameter. > > *SecretResolver secretResolver = SecretResolverFactory.create(properties);* > > Which one is correct ? > > -- > > Tharindu Edirisinghe > Software Engineer | WSO2 Inc > Identity Server Team > mobile : +94 775 181586 > -- Thanks & Regards, *Johann Dilantha Nallathamby* Associate Technical Lead & Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+94777776950* Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
