what are different authentication options available in servlets
There are four ways of authentication:-
HTTP basic authentication
HTTP digest authentication
HTTPS client authentication
Form-based authenticationLet?s try to understand how the above four ways work.
HTTP basic authentication In HTTP basic authentication the server uses the username and password send by theclient. The password is sent using simple base64 encoding but it?s not encrypted.
HTTP digest authentication HTTP digest authentication is same as HTTP basic authentication but the biggestdifference is password is encrypted and transmitted using SHA or MD5.
HTTPS client authentication HTTPS client authentication is based on HTTP over SSL. It requires that the end clientshould possess a PKC (Public Key Certificate). This verifies the browsers identity. Form-based authentication In FORM-based the web container invokes a login page. The invoked login page is usedto collect username and password