The DynamicSecureWebHosting sample demonstrates secure hosting with user access on a dynamic port. The sample contains one web application that accesses a secure website hosted on a dynamic port determined by the Java Card 3 platform. Each time the application is run, the Java Card 3 platform determines the port used to access the website.
Running the DynamicSecureWebHosting sample consists of using the IDE to open the DynamicSecureWebHosting project, starting the application, checking the website’s security certificate, displaying a web page, and entering information on that page.
Before performing the following procedure, the Java Card 3 Development Kit, Connected Edition must be downloaded and installed on your development system.
The DynamicSecureWebHosting project is located under the JC_CONNECTED_HOME\samples\web folder.
Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.
The IDE compiles, builds, and runs the sample. When the sample runs, the IDE launches the default browser and displays the Secure hosting dynamic port entry page.
Note - If the browser displays a warning that the security certificate is not issued by a trusted certificate authority, disregard it and continue to the web site. The security certificate for this sample is used for demonstration purposes only and cannot be used for developing deployable samples.If you are unable to continue to the web page, perform Accepting Untrusted Certificates.
The browser displays a greeting page that uses the text entered in the name field.