bhavicp
bhavicp

Reputation: 355

Java WebService checking for SSL

I've developed a WSDL webservice in Java and I need to check if the connection/call/request was made via SSL (In short, only accept SSL connections/requests). Is this possible? I wasn't able to find anything relating to it, but I'm probably searching wrong.

Upvotes: 0

Views: 66

Answers (1)

user207421
user207421

Reputation: 311052

You don't need to do a second check on the Java side. Just define the resource correctly in web.xml. If you must check it for some reason, just check ServletRequest.isSecure().

Upvotes: 1

Related Questions