How can a Java app validates and accepts a server certificate?

Hi,
I got a Java 1.6 client, running on JBoss 6, which is required to make SSL connection to LDAP server.
The first time when the Java client makes a secure ldap connection to LDAP Server, the server will send a certificate to the client. Once the client receives the certificate, it has to validate if the certificate is signed by a trusted CA. If it is, the client accepts and saves the certificate in a keystore. So, the certificate can be used later on.
As I known, most Web browsers that support SSL have a list of CAs whose certificates they will automatically accept. If a browser encounters a certificate whose authorizing CA is in the list, the browser will automatically accept the certificate, and establish a SSL connection to the site. Can I borrow from this idea, and implement it in Java world?
Thank you.

Actually if the LDAP SSL certificate is signed by a trusted signer the SSL handshake will complete successfully.
More typically, the LDAP host is either self signed or signed with an corporate internal signing certificate. In which case this needs to be imported as appropriate for the J2EE server (I believe it is just the standard JVM truststore for JBoss). Also note that some J2EE containers (not sure about JBoss) cache the keystore and truststore, so you may need to restart the J2EE server if you add entries to them.

Similar Messages

  • My wife and I have 2 new iPhones and also have a mac book pro and an iMac. How can we share apps, music and contacts between all these?

    My wife and I have 2 new iPhones and also have a mac book pro and an iMac. How can we share apps, music and contacts between all these?

    Use the same Apple ID and password for purchasing in all these devices.

  • How can I restore App Store and apps

    How can I restore App Store and my purchased apps

    If you mean that you can't find the App Store app on any of your homescreens or app folders, and you can't find it via the spotlight search screen (swipe your first home screen to the right), then is it hidden by Settings > General > Restrictions > Installing Apps being set 'off' ? If it is hidden then unhide it and the app should then appear on your iPad's homescreen, and you can then re-download your apps via the Purchased tab in it.

  • Trying to download update to CoPilot Live and CoPilot GPS with maps.  files sizes are large and taking hours to download on wireless connection.  How can I download App updates and new maps while connected to PC and Itunes through hard wire internet link?

    Trying to download update to CoPilot Live and CoPilot GPS with maps.  Files sizes are large and taking hours to download on wireless connection.  How can I download updates and new maps while connected to PC and Itunes through hard wire internet link?

    I'm on my iPad, so I don't know if this is the page with an actual download. I don't see a button, but assume that is because I  am on an iPad. It is in the DL section of Apple downloads.
    http://support.apple.com/kb/DL1708

  • How can i remove the terms and conditions from my app store on iphone 5s ?

    How can i remove the terms and conditions from my app store icon on iphone 5s

    Hello mrh1962,
    Thank you for providing the details of the issue you are experiencing with accepting Terms & Conditions on your iPhone 5s.
    First, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If you can access your home screen, I also recommend verifying that cookies are not blocked and private browsing is turned off in Settings>Safari:
    iPhone User Guide - Safari settings
    http://help.apple.com/iphone/7/#/iph3d7aa74dc
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Purchased "Moneypad app" missing in App Store. I've used that app for more than a year and all my financial records are in it. I have the backup but I need the app. How can a purchased app go missing??? Is that even legal??

    I've used "Moneypad" app to record my financial transaction for over a year and I got an update today. After updating all the icons where misplaced and there were a lot of bugs in the app. The update said "Restore original app icon". So I decided to delete it and reinstall the app but now i couldn't find the application in the itunes store both through my Macbook air and my iphone 5. What do I do now?? how can a purchased app go missing? Is it even legal to delete apurchased app from the itunes store?? What happened to my money and the worst part is my records cant be used in anyother application but "Moneypad". There were 2 version of the app in the store. One was free and the other One was paid. The free app is still there but the paid One is gone!! Please respond to this issue as soon as possible! I need it to record my daily transactions or it would mess up my work a lot! Thankyou.

    I did buy it long back! and now,I downloaded the free version and it requires me to buy it again to make it pro. and NO I dont have a copy of the application with me! I juz have the backup of the app data with me! and "
    MoneyPad√ " is the trial version. The original version which was Rs.220 in India when i got it was named "MoneyPad" without the mathematical symbol. Please is there any way i could get that application back?? I purchased the application and i've got all rights to own it! and what do you mean by "App developers can remove their apps from the store at any time"? So Can I upload some stupid app claiming to be something else and costing around $100 and delete it as soon as someone purchases it??

  • My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps?

    My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps? I'm worried that I won't have any ability to access my apps and music. We have our itunes separated on different computers, so I have all of my stuff separated from his, but I don't know how to put them in my new account.

    Well... there really isn't any fully legal way to do this.
    The simplest solution is to continue sharing the same iTunes purchasing acct, but create different ones for iCloud (assuming that's why you needed to do the split).
    Slightly less kosher: Burn AUDIO CD's, of the music then copy them back to your new account.
    BE sure to do this from original acount, To keep the music info, you'll  copy over the CDDB file (in prefs somewhere) - since this maintains the data of CDs that you've had in library.... (it isn't carried over onto a user created CD.)
    There's also

  • I have a windows computer. How can I create apps and put them on itunes?

    I have a windows computer. How can I create apps and put them on itunes?

    You can't. The iOS SDK requires Mac OS X and an Intel Mac; Windows applications can't be put on either the iOS or Mac OS X App Stores.
    (82889)

  • How can I delete apps in iTunes and have that sync to my iPhone and iPad?

    How can I delete apps in iTunes and have that sync to my iPhone and iPad? I don't want to delete 3 separate times for each item. I just carefully chose 30-35 apps to get rid of via iTunes, hoping it would sync to my devices, only to find I have to repeat the process on my iPad, take notes, then repeat it on my iPhone. It wasn't always so tedious was it?
    Here's the "Help" I got from Apple. They even quoted my question back to me then proceeded to answer with something very different and completely missing the point.
    I understand that you would like to delete the Apps. I know how eager you are to get the required information and I will be happy to assist you.
    You can remove individual songs, audiobooks, and videos from your iPod, iPhone, or iPad. Removing an item from your device doesn't delete it from your iTunes library.
    To remove items from a device other than an iPod shuffle, first make sure that iTunes is set up to manually manage items.
    1. Connect your iPod, iPhone, or iPad to your computer.
    2. When the iPod, iPhone, or iPad icon appears in iTunes, select it.
    3. Unless your device is an iPod shuffle, click the Summary tab and make sure "Manually manage music and videos" or "Manually manage music" is selected.
    4. If the disclosure triangle to the left of your iPod, iPhone, or iPad (below Devices) is closed, click the triangle so that you can see the device's contents.
    5. Select the item you want to delete and press the Delete key.
    This was not helpful in any way and I am still unable to delete apps on my devices in a global, iTunes based way. Each device still requires its own independent process.

    Match was off.  I made all of the changes and then went through the "Turn on iTunes Match" option.  I now have deleted some tracks, edited the Metadata in CDDA, and then added it back.  This worked fine, but it is not a good solution.
    I just tried making some edits and use the "Update iTunes Match" and that seemed to work.  It looks like the real answer is that Match must be up and operational, then you can make changes and run the Update to incorporate the changes.  However, if Match has a problem then Signing Out and back in to your store account and going through the process of Turning On Match (were you get the questions, "Add this Computer to Match" will overwrite any changes. 
    Since this relies on the stability of iTunes, I won't be making a lot of changes between updates.

  • How can I change the Country and Credit card Apple ID without loose the app installed ?

    Hi, I move from Brazil to Qatar and keep using my account at Brazil since I have a credit card there and the old address.
    Today Ireceived a message when I was updating my app at my iPad that I should change my payment method that was rejected (???), I try to update and keep the same message... So now maybe better to use address and card from Qatar.
    I could not understand how can I change the country and shop since everything at the address is linked to Brazil.
    Also I'm afraid to lose the installed app...
    Please, a step by step will help a lot, I have a very low computer experience ...

    You won't lose apps that are installed.   You will lose the ability to update them
    Business with the App stores is restricted to those stores in your formal country of residence (your billing address) and a bank supported credit card from that same country.   You can buy and update apps with those details only in that country.
    If you have established residences and bank supported accounts in other countries you can also use those.   You can buy and update apps in those countries using those details.
    You cannot interchange them.   You cannot merge IDs or purchase details.

  • My daughter has been using my iTunes account to buy music and apps. I now want to set up a separate iTunes account for her, with a different login. How can we transfer the music and apps she has already bought to her new iTunes account?

    My daughter has been using my iTunes account to buy music and apps. I now want to set up a separate iTunes account for her, with a different login. How can we transfer the music and apps she has already bought to her new iTunes account?

    Hello, thank you for your prompt answer. I did have an idea that Home sharing might be the answer but could not quite figure out how to do it. I have enabled home sharing in my iTunes account, put in username and password, clicked on creat etc. But the homs sharing icon doew not appear in the left side of iTunes. So I got stuck. Any further ideas?

  • I just purchased an iMac.  How can I use apps purchased on my iPhone and iPad on my new laptop?

    I just purchased an iMac.  How can I use apps purchased on my iPhone and iPad on my new laptop?

    1) Congratulations on purchaing an iMac. But an iMac is not considered a laptop.
    2) Apps you bought for you iPhone and iPad can interchange with each other, but can NOT run on an Imac or a MacBook.
    You will have to buy the same title again from the Mac App Store. When you do, you can run them on your iMac and your MacBook.

  • How can i get the itunes and apps store icon on my ipad desktop?

    How can i get the itunes and apps store icon on my ipad desktop?

    Google are supposed to be working on an iPad maps app.

  • Can someone tell me how to restore my App Store and iTunes Apps on my iPad 2?

    Can someone tell me how to restore my App Store and iTunes Apps on my ipad 2?

    If you had a backup either in iTunes or iCloud of the iPad you can restore from it by following this article:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If not you can go into the Purchased section of the App Store App, and download your Purchased Apps from there for free. However their data will not be restored.

  • I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

Maybe you are looking for

  • Wireles sync not found in options for any of the "syncable" modules

    When syncing, I get a message that my Outlook calendar can't be synced because Wireless is turned on.  Help tells me " On your BlackBerry® device, in the Calendar application, Contacts application, Tasks application, or MemoPad, press the Menu key >

  • Model class deleting in Web Dynpro

    Hi , I want to delete few model classes which I imported from RFC which are redundant. Is there any way I can delete these classes. From the ABAP end also few RFC’s have been deleted and now I am getting error at the Web Dynpro end. Your reply greatl

  • Help - AutoCAD to PDF

    Is there any java free api to convert AutoCAD formats (DWG or DXF) into PDF? Thanks

  • Can't get Extension's icons to work properly

    Hi, I don't know why but it seems I'm unable to make the extension show its own icon (the ones that EB lets you choose in the Bundle Manifest Editor - Normal Icon, Rollover Icon, Dark Normal, etc.). I've checked the manifest and it seems OK. There's

  • Modifying "Prompt user for input"

    Hi, all. Is there any "Prompt user for input" VI where I can include enum or ring type inputs? If not, how can I modify the "Prompt user for input" VI to do that? Thanks, Francisco Solved! Go to Solution.