Security

Gmail SMTP and Security settings for sending email

Introduction We will see here how to do Gmail SMTP and Security settings for sending email using programming language. You can use any server side technology for sending email using Gmail SMTP server. This example will show you only what configurations you need in order to send email and it does not show any concrete […]

SOAP over HTTPS with Client Certificate Authentication

Introduction The tutorial, SOAP over HTTPS with client certificate authentication, will show you how we can use client certificate to handshake with server along with basic authentication for consuming the service. We have also seen how to authenticate by sending authentication information over http headers in SOAP web service but here we will use client […]

@PreAuthorize annotation – hasPermission example in Spring Security

Introduction In this tutorial I will show you an example on @PreAuthorize annotation – hasPermission example in Spring Security. The most useful annotation @PreAuthorize, which decides whether a method can actually be invoked or not based on user’s role and permission. hasRole() method returns true if the current principal has the specified role and hasPermission() […]

@PreAuthorize annotation – hasRole example in Spring Security

Introduction In this tutorial I will show you an example on @PreAuthorize annotation – hasRole example in Spring Security. @PreAuthorize is the most useful annotation that decides whether a method can actually be invoked or not based on user’s role. hasRole() method returns true if the current principal has the specified role. By default if […]

How Siteminder works

Introduction This siteminder tutorial will show you how SiteMinder system works. This tutorial will give you technical insights of the working principle of SiteMinder system. Scenario Problem There may be situations where users access a web service hosted on a Apache Web server is authenticated by some authentication mechanism, let’s say, LDAP. If the same […]

Spring Security Form based Authentication – Annotations

In my previous tutorial, I have shown Spring Security Form based Authentication – XML Configuration but in this tutorial I will show you annotations way to configure Spring Security with Spring MVC web application to secure pages. I will create spring mvc based web application and I will configure Spring Security to protect a page from […]

Spring Security Form based Authentication – XML Configuration

In this tutorial I will show you the way to configure Spring Security with Spring MVC web application to secure pages. I will create spring mvc based web application and I will configure Spring Security to protect a page from outside access. You may also like annotation based example Spring Security Form based Authentication – Annotations […]

REST Webservice Authentication

In this tutorial I am going to show you how we can authenticate the REST webservice using sending credential information in Cookie. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection […]

Authentication example in JAX-WS webservice

Before going through this tutorial please make sure that you have the following jars in classpath. You can create simple Java project or Dynamic Web Project in Eclipse. I will create Java Project here. If you create Dynamic Web Project then you can directly deploy the service to the server and in this case you […]

Using SSL(Secure Socket Layer) in JAX-WS webservice

In this tutorial I will show how to use SSL/TSL or https in JAX-WS webservice. For using SSL with jax-ws webservice we need one keystore file. Please have a look at deploy jax-ws webservice before reading this tutorial. First generate the keystore file using the below command from the command prompt. D:\keystore is the target […]

Scroll to top