I have a metro application in which I have Login-Page where am entering values for username and password fields.Based on these values my application will need to call web-services.Can anyone give me advice to store and retrieve the values from Login-Page?
Thank you.
You can also use the CredentialPicker class. See https://gist.github.com/3790578 for a full example using the CredentialPicker and then storing it in the PasswordVault.
Sounds like you need the PasswordVault API. Check out the sample app... Credential locker sample # http://code.msdn.microsoft.com/windowsapps/PasswordVault-f01be74a and read up on the PasswordVault class # http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.credentials.passwordvault.aspx
Related
I have managed to setup both BACnet and MQTT connectors and produce a data flow to both MQTT and dashboard.
However I am unsure of the exact syntax I need to use in my bacnet.json for pulling multiple sensors in the same BACnet controller.
Any pointers or assistance would be appreciated.
You can find sample config files in the documentation:
https://thingsboard.io/docs/iot-gateway/config/bacnet/
I'm guessing that you're probably referring to setting up several "attributes" (/BACnet 'objects'/controller 'points'):
https://thingsboard.io/docs/iot-gateway/config/bacnet/#key-settings-for-attributes
hi guys how can i get information like how many number of class files which will be executed from particular test class from sonarqube database,my sonarqube database is resided in MySQL db i am not finding any answers can guys help to this problem
The short answer is: it is not recommended to access SonarQube DB to get information, so forget about directly manipulating SQ's database.
A longer answer might be: have a look at SonarQube's webservice API, especially these ones :
http://nemo.sonarqube.org/api_documentation/api/tests/list
http://nemo.sonarqube.org/api_documentation/api/tests/covered_files
The first one should allow you to retrieve all test id then you can pass the ID you're looking for to the second webservice then check the size of the files array... but I don't think that this will be easy as it isn't straightforward to get the testFileId you need to feed the first webservice (you can't pass a file's key as far as I know.)
We have CAS enable application and we need a requirement that when ever we give user id, password and click on submit button, by default it should take a querystring(something like this "service=www.casifiedapp.com").
What could be the better solution? Where do I need to change CAS configuration. I cannot find the the commanline, action urls etc...
Any help would be appreciated. Thanks in advance.
You can write your own AuthenticationHandler to load service data from query string or from another location.
have a look at the docs:
https://wiki.jasig.org/display/CAS/How+To+Write+an+AuthenticationHandler
I used couchdb before and really liked the UI, because I can create views and test them directly in UI and view documents.
Because, I need to scale, I started using couchbase. But, after installing couchbase, I don't know the url of couch base client side UI.
Thank you
Just use public IP of any of the nodes in the cluster and connect to port 8091, like this http://example.com:8091
Yes it's served via 8091. But I would read through this section of the docs: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html; when it comes to IP's.
//Daniel
CouchDB's GUI is available at http://127.0.0.1:5984/_utils
I'm looking for best practices around how to deal with password fields in my Java standalone application (Netbeans+Spring+Hibernate+MySQL database+Swing).
1) I've created a table with a password column.... so, which data type must be this column?
2) Which kind of algorythms for SALTing passwords do you recomend to follow and implement on my app?
3) Do you recommend saving password as a plain-text or after being transformed according with the algorythm?
4) Sample codes of all this process
I hope we can help many other developers who must deal with Spring for standalone apps and around the tasks with Hibernate on this kind of questions.
Thanks in advance for any suggestions.
You should never store the password as a plain text in your application. Its not recommended for a highly secured application. You can use the PasswordEncoder provided by the Spring Framework itself to store the password in an encoded format to the database. You need to do following settings in your applocationContext.xml file.
<security:authentication-manager>
<security:authentication-provider >
<security:jdbc-user-service data-source-ref="dataSource"
users-by-username-query="
select emailid username,password,'true' enabled from tbl_LoginDetails
where emailid=?"
authorities-by-username-query="
select a.emailid username,b.authority from tbl_LoginDetails a,tbl_UserRoles b
where a.userId=b.userId
and a.emailid=?"/>
<security:password-encoder ref="passwordEncoder">
</security:password-encoder>
</security:authentication-provider>
</security:authentication-manager>
<bean name="passwordEncoder" class="org.springframework.security.authentication.encoding.ShaPasswordEncoder"></bean>
At the time of user registration you need to encode the password yourself in the controller before storing in the database with the class ShaPasswordEncoder.
Hope this helps you.