JRE :: Java Applications Certificate Check With Password Protected Proxy

Jul 29, 2014

I have a problem with several java applications. When I start them Java wants to connect to the certificate authority, to check if the certificate is still valid and not on a blacklist.

The problem is: my whole internet is behind a password protected proxy. If I open my browser i get a windows with username and password. I enter it and internet in the browser works. But for Java it isn't working, because I see no point, where I can enter the password and username for the proxy. I can enter the proxy ip and port in the java settings, but not the password and username. So I get a error screen from java, telling me, that java could not connect. I can disable the check in the java settings, but I don't wont that.
 
Is there a way to tell java, that java uses my proxy with my password and username? I already googled this problem and found nothing except tutorials for connecting with proxy in the java code. But these applications are not from me, I can't change the code ...

View Replies


ADVERTISEMENT

Read Password Protected Excel File Using Java

Nov 26, 2009

How to read Password protected Excel file using java. Actually i read normal excel file(without password protection) successfully, using some standard codings with support POI jars. But i am unable to read password protected xls file.

View Replies View Related

File Download From Password Protected FTP Server

Jun 16, 2014

I have also tried above code with few changes but I got error. Code and error show below.

Java Code:

package practice;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.MalformedURLException;

[Code] .....

Error:

Java Code:

Jun 16, 2014 6:21:33 PM practice.TestFTPProgram main
SEVERE: null
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

[Code] .....

View Replies View Related

Read Password Protected Excel File

Aug 1, 2014

With Apache POI it is possible to password protect an excel file. PFB for the code. But it is working with XLSX extension [2010 Excel format], But not with XLS [2003 Excel format].how to accomplish the same

package com.excel.utility;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.security.GeneralSecurityException;

[code]..

View Replies View Related

Check Password Rule Using Wrapper Class

Oct 26, 2014

I have to use wrapper class for this assignment. I need to know if my code is more like object oriented or not and am I using the wrapper class properly here? Let me know if I can make this code better.

I also need to know if I can mask this password input (STRING) using NetBeans/Eclipse IDE? I did search, but I found the console method.

Password rule is as followed : Length of Password 8-12, with no special characters, including minimum one uppercase letter, and only one numeric value.

Here is the code :

import java.util.*;
import java.lang.String;
import java.lang.Character;

public class CheckingPassword {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Please enter a Password: ");
String password = input.next();

[Code] .....

View Replies View Related

Check Password Rule Using Wrapper Class

Oct 26, 2014

I have to use wrapper class for this assignment. I need to know if my code is more like object oriented or not and am I using the wrapper class properly here? Let me know if I can make this code better.

I also need to know if I can mask this password input (STRING) using NetBeans/Eclipse IDE?

Password rule is as followed : Length of Password 8-12, with no special characters, including minimum one uppercase letter, and only one numeric value.

Here is the code :

import java.util.Scanner;
public class Assignment1
{
private static String password=null;
private static void password_input()

[Code] ....

View Replies View Related

Proxy Set In Java

Feb 19, 2014

I'm using proxy to crawl some data. So, for now I've this snippet,

public static void IPchange() {
String proxy = 121.11.23.21;
String port = 8080;
Properties systemProperties = System.getProperties();
systemProperties.put("proxySet", "true");
systemProperties.setProperty("http.proxyHost", proxy);
systemProperties.setProperty("http.proxyPort", port);
}

Now, I've a thread say T which is calls this IPchange() method to use proxy. Now, Thread T creates other threads say T1, T2. When I give URL to crawl for this T1 and T2. T1 and T2 will not call IPchange() method. To crawl URL, T1 and T2 now using my Original IP?

View Replies View Related

I/O Streams :: Read Certificate In Token Usb - Utilizing Java?

Oct 14, 2014

I am developing a program that reads a digital certificate in a USB token, but can not cause the program to access the token.

View Replies View Related

JRE :: Java Certificate Revocation List / OCSP Performance

Dec 23, 2013

As the JRE environments and usage of applets has become more and more secure in through the evolution of enhancements to the JRE we have noticed a performance degradation in usage of these applets and launching of them.
 
As our customers are in the business to business environment they utilize our applets that are delivered from the server to the client.  We are looking at ways to reduce the time to validate that the certificates are still valid.  we are looking for ways to provide a means for our customers to validate against a CRL on our server or to cache the the checks against the OCSP so that not each and every client accessing our server needs to go out to the third party sites to get the checks completed.
 
Is there a means to store this information on our server and have the JRE validate against that system rather than the normal OSCP...

View Replies View Related

Java Servlet :: Reverse Proxy For Web Application

May 24, 2013

The users of our a enterprise Java based web application must access a third web application through simple HTML links and then navigate in the target application. But for security reasons and constraints the direct exchange between the browers of users and server of the other web application is not allowed. Our web application must retrieve the web page from the other application and must return it to the users's browser. Is there a convenient way to implement this requirement in J2EE ? In this case our web application must play the role of a simple reverse proxy, must request a target JSP page from other application and process it to rewrite the URLs contained in the HTML page, then send the response to user's web browser.

View Replies View Related

Java Applications Communication On Different Systems

Nov 1, 2014

I'm new to java and haven't develop any application before that... I need to develop an application through which i can send data from 1 computer to another computer. These communication in between the computers are those are under one router connection. Means they can connect even without internet access

Main concept is as follow

1. Java application on computer A [server side application]
2. Java application on Computer B [Client side application]
3. Java application on computer C [Client side application]

Now computer B and C communicate with computer A. but they don't know about presence of each other

View Replies View Related

Java Solution To Communicate Via Applications On Without Sockets

Oct 6, 2014

I have an application written in Java on the Linux platform. My application will work the following way:

User A will open application. User B will open application.User A will need to send User B a message but without a socket connection.User B will need to send User A a message but without a socket connection.The user should be able to identify the messages sent to each other.If User A reads user B's message the message will no longer be available in the channel of communication.If one user exits their application their message should be removed.User C should not be able to read user A and user B message (This is only via the application design, no real security here).Applications should be able to work on different machines however they will utilize a shared network mount to access files modified by each other.

I do have to note that the messages being sent is rather small and only 1 message is sent from each user, so in that regard I did not want to setup a client/server model to do this using sockets.

Basically I am looking for a similar concept as a message queue but more relevant to my requirements done in Java. What are some good options to use that will address some of my requirements? I have not touched Java in a long time and only have used it for certain usage so I am trying to get an idea of which current technologies are best for what I need.

View Replies View Related

Enabling Java In Applications On Hard Drive

Oct 18, 2014

I just installed java on my computer because i was getting messages that it was no longer there. And I figured out how to solve my problems on my browsers.  but i don't see how to enable java in my applications on the hard drive.  in particular, i want to use the database in open office but don't see how to enable it.

View Replies View Related

Declaring Parameters (fields As Protected String) In Java Class

May 19, 2014

I am trying to declare fields as protected String custom.field.1096; in my java class but it does not allow me. Can I not declare the field as above? Is there any workaround to achieve this?

View Replies View Related

JSP :: Hide Sensitive System Properties Like Passwords Set By Java Applications?

Oct 28, 2014

I am maintaining an existing Java product (which has a HUGE code-base). I discovered that it is setting (and getting) two of its internal passwords as Java system properties, at no less than 4-5 different places (methods). Now, the problem is, the passwords are being stored as plain text in the Java system properties, and so, the same is visible to external entities, as the application is not using any Java Security Manager. For example, if the application (process) is running on port number 1234, we can run the Java command:

jinfo -sysprops 1234

to view both the passwords as values of the corresponding Java system properties. I wish to ask if there is any remedy to this without changing the existing code-base too much? The desired effect would be to "hide" the two Java system properties (denoting the two passwords) from all external entities.

It may be noted that introducing a Java Security Manager into the application may not be a solution, as if we revoke read permissions from the said two Java system properties using the Java Security Manager, the application codes which read those properties would crash. Same is applicable for storing the passwords in encrypted form, as that would crash all codes within the application which are expecting to read the passwords in clear text form.

To give a bit more context, the said two passwords we are storing as Java system properties are actually passwords to access two key-stores, and Tomcat requires that we store the said two passwords in plain-text format. Any workarounds, such that only Tomcat will be able to see the two passwords as-is, while they will be invisible to all other external entities?

Or, is there any way to place the said passwords in other in-memory locations (like static variables) which only Tomcat can (be made to) read instead of placing them as system properties which is exposed to anyone?

View Replies View Related

Write A Program That Prompts User To Enter A Password And Displays Valid Password

Dec 3, 2014

My homework is asking me to write a program that prompts the user to enter a password and displays "valid password" if the rule is followed or "invalid password"

Sample
enter a string for password: wewewx
valid password

It's being graded on
Design of my GUI
Dialog box
User friendliness
Creativity

My current issues with the current code I have written is simply the password doesn't work unless it starts with 2 digits, the other order it displays as wrong. and I have no idea how to add a GUI.

import java.util.*;
import java.lang.String;
import java.lang.Character;

[code]....

View Replies View Related

JRE :: How To Find Certificate Used To Sign App

May 11, 2015

There's a site that uses DBsign UWS to validate personal certificates on a smart card.  I wound up breaking that functionality by moving the default Java truststore so I could create a new one with just root/intermediate CAs that I trust (I have no desire to allow apps signed in China, Russia, Turkey, and countries spelled with heiroglyphs).  Now, my browser believes the UWS is self-signed and rfuses to run it.  I need to find the certificate used to sign that app to see which cert(s) signed it, so I can add them back to the truststore.  How can I find that?

View Replies View Related

How To Create Java Files Into Windows Applications (Exe Files)

Oct 26, 2014

What step to know to develop software..

View Replies View Related

Applets :: JRE Is Rejecting Website Certificate Even Though IE Recognize It

Mar 19, 2014

When our applet loads on our HTTPS website, the JRE is rejecting the website certificate, saying it does not recognize the Certificate Authority (which is Thawte). Internet Explorer is happy with the certificate.

With tracing turned on, I can verify the JRE is checking the certificate authorities of IE, but for some reason rejects all of them. The trace shows this:

security: Certificate has failed the verification with the Internet Explorer ROOT certificates
security: Invalid certificate from HTTPS server

We've tested several versions of JRE 7 and the latest version of JRE 8. All of them reject the certificate authority. This happens on various versions of Windows and Internet Explorer.

Please note that I'm not referring to the certificate used to sign the applet. The JRE is happy with that certificate.

What can I do to further investigate this issue?

View Replies View Related

Java Code That Ask User For Password Input

Jul 21, 2014

This is the java code that I wrote for a password:

// java application that asks the user to enter a password
 import java.util.Scanner; //program uses class scanner
 public class password{
//main method used to execute java application
public static void main(String args[]){
//create scanner to obtain input from command window

[Code] ....

here is the output of the code when I run it :

entered the passwordreason
Try againPress any key to continue . . .

The code compiles without errors. The problem is when , I entered the actually password that I declared in my code, it doesn't output "You entered the correct password" but it instead outputs "Try again", which is supposed to be the output if you've entered the incorrect password. What did I do wrong?

View Replies View Related

How To Restrict A Certain Website From Proxy Server

Mar 16, 2015

how would i use it to restrict certain websites to be accessed.

SimpleProxyServer.java
import java.io.*;
import java.net.*;
public class SimpleProxyServer {
public static void main(String[] args) throws IOException {
try {
String host = "your Proxy Server";

[code]....

View Replies View Related

How To Restrict Certain Website From Proxy Server

Mar 16, 2015

I have this code, how would i use it to restrict certain websites to be accessed.

SimpleProxyServer.java

Java Code:

import java.io.*;
import java.net.*;
public class SimpleProxyServer {
public static void main(String[] args) throws IOException {
try {
String host = "your Proxy Server";
int remoteport = 100;
int localport = 111;

[Code] ....

View Replies View Related

Proxy Authentication To Connect To Internet

Apr 25, 2014

For my job I would to develop a Java application which downloads some data from a webpage and then process them.

The problem is that I have to authenticate to a proxy server to connect to the internet. As I browsed on the net, there is a possible way for implementation.
 
Authenticator.setDefault(new Authenticator() {
    @Override
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(username, password);

[Code] .....
 
Sometimes it works fine, but usually I get the following exception:
 
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
    at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2083)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
 
I don't understand what's the problem and why it's not persistent.

View Replies View Related

Applets :: Unable To Ensure Certificate Used To Identify Application Has Not Been Revoked

Nov 27, 2013

I have a signed Jar file which will run with the all-permission and I am getting a warning message in MAC with Java7u45.

"Unable to ensure the certificate used to identify this application has not been revoked "

For more detail, look in the attachment

manifest.mf properties:
Trusted-Library: true
Permissions: all-permissions
Application-Name: My Test App
Codebase: *

How can I resolve this.

View Replies View Related

Setting Password And Username - Username Works But Getting Errors For Password?

Apr 4, 2015

username works perfectly, but when I enter password I get this error.

Java Code:

OKbtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if(Usernametxt.getText().equals("Admin") &&
(Passwordfld.getPassword().equals("Admin2"))){
System.out.println("permition granted");
}else{
System.out.println("permition Rejected");

[code]....

View Replies View Related

HTTPs Request Authentication Failing Even After Setting Proxy

Jul 11, 2014

i am trying to access an https request on a server and authenticating it after passing on username and passwork. I have even set up the proxy of the employer to get the request back as a zipped folder.

I always get an error on: " InputStream reader = con.getInputStream();"

Can be a proxy setting issue too but I am not sure why it should be.

Is there a way to create a secure channel in java to connect to https or by any way the below code could be modified to connect it to the server?

Code is as below:

import java.net.*;
import java.net.Proxy.Type;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import com.sun.org.apache.xerces.internal.impl.dv.util.Ba se64;
public class DownloadFile
{

[Code]...

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved