Our applet is behind Microsoft ISA Server which has integrated proxy authentication.Isa Proxy server returns http 405(NOT 407) for connections which has no authentication credentials on it.There for my java.net.Authenticator class does not get called. how can i authenticate my connections to the proxy server in this situation?
Applet is signed and compiled with java1.6. URLConnection class is used for the connections.
openning http connection behind proxy which requires authentication but does not return 407
2.4k Views Asked by e13420xx At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in PROXY
- CDN Detector Extension / Script
- How to use a proxy to obtain a static IP for my Node.js application?
- Record all desktop internet requests and select certain requests and send it to the server
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- How to efficiently test some HTTP proxies for accessing a specific domain?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Disable/Enable OSB proxy service via WLST
- Add proxy configuration to tracking_uri in MLFlow
- Python : Using a MTProto Proxy For a Telegram Bot
- How to proxy to another port?
- How to use ProxyAgent with http_proxy and no_proxy environment variables
- Does a 403 error occur if there is no user-agent on the proxy network?
- Enable TLS caching with squid. https_port directive support
- How to peek or ready to check whether HTTP request or not in TCP proxy?
Related Questions in JAPPLET
- In my Netbeans 8.1, <applet? Tag is not changing the size of the applet , just showing in the same standard size? What should I do?
- Error with public void paint (Graphics g)'s in JApplet slideshow
- Replacement of applet which takes print from barcode printer
- Creating a Java Applet to Launch in Browser
- Having A Problem In Changing Font in java
- Graphics and Graphics 2D in java
- Class-Path attribute within Manifest causes annoying FileNotFoundException when loaded within applet
- Java playing the same audio over the another one
- Cannot get JApplet to work. Everytime I run the program I get an error
- JApplet Restart adds duplicates of components
- Start: applet not initialized error. How do I resolve this issue?
- Digital persona Applet not loading lib .jar
- Why can't I run a JApplet in IntelliJ?
- Java applet not launching using JNLP when both 32bit and 64bit java version is installed?
- Applet class is not loading in a JSP
Related Questions in AUTHENTICATOR
- How to modify the prebuilt UI of authentication in aws amplify version 6 in React Native
- How to configure otphp for Microsoft Authenticator App?
- ASP.NET Core Identity 2FA with Authenticator app in ASP.NEt Core Web API
- Amplify SwiftUI Authenticator UI, how to bind input field array to TextField
- Two factor authentication over MS Authenticator
- Keycloak pass data from authenticator to event listener
- passing form data to authenticator
- Re-enable GitHub two-factor authentication with Authenticator app when switching to a new smartphone
- Android. Automatic accessToken update with displaying the response data from the updated request on the screen
- how to create a custom registration authenticator in keycloak that stores user after the email verification and data to be non-volatile
- Can't log in Heroku
- How to use the <SelectField> component in the <Authenticator> component for AWS Amplify in React?
- useAuthenticator authStatus stuck on `configuring`, Amplify react-ui
- Keycloak Attempting to create a user from information from x509 certificate: AuthenticationFlowException Not found serialized context in clientSession
- Symfony - User authentication using external user database + API
Related Questions in ISASERVER
- How to publish 1434 UDP port through ISA SERVER 2006?
- Proxy Server error 407 in Core 2 - Azure and other Web Api's
- React Native debugging on Android Emulator behind a corporate proxy
- Forefront TMG and DHCP Relay - requests do not show in logs
- SAS Batch Jobs Intermittently Failing
- cannot import repo from from http://localhost/xxx/xxx.git
- DNS times out for external domains after installing forefront tmg 2010
- Uploading large amount of data from client to the WCF service through https
- Issue with Web Application and ISA Authentication
- Access to web service over ISA, SSL
- Authentication against ISA Server, Using HttpClient (Android)
- WCF Client - 407 Proxy Authentication Required while running webservice
- How to make a remote WMI calls to a machine with ISA Server 2006 running?
- Fiddler: Error 502 Proxy Error
- How to use APJP with ISA Server
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I can see two approaches to working around this problem and neither is really ideal. First, I'm guessing that you've verified that sending the request with the authorization information does not result in a
405response code? If the answer is yes, you can try setting theProxy-authorizationheader in the request as a header:The format of that header will depend upon the authorization scheme that is required by the proxy server, so you'll have to do some research for your particular scenario.
The second approach involves subclassing an internal JDK class to spoof the response code to force the normal proxy authentication path. First, here is the subclass:
Of course, this will mask any actual
405responses so it could have unintended consequences. Telling the URL object to use this requires a subclass ofjava.net.URLStreamHandlerFactory:Then you can use this object by calling
URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());somewhere in initialization code. I found this site and this site useful for looking at how the core Java classes work. If you need to support HTTPS then you will need to make similar changes for that protocol.Hopefully one of these solutions could be useful for you. I'm not completely sure that the latter approach will work inside an Applet's security constraints. The former should though. It is also possible that this might be easier to do with a different HTTP library such as Apache HttpComponents if you are able to use it.