KTBLOGGER.. Never stop learning bcz Life never stops teaching.

Annotations in AEM 0

Annotations in AEM

SCR Annotations @Component @Activate, @Deactivate, and @Modified @Service @Property @Reference @Component The @Component annotation is the only required annotation. If this annotation is not declared for...

JWTs Implementation 0

JWTs Implementation

When a backend server receives a request with a JWT, the first thing to do is to validate the token. This consists of a series of...

Spring Security Example 0

Spring Security Example

Dependancy <dependency>           <groupId>org.springframework.security</groupId>           <artifactId>spring-security-web</artifactId>           <version>5.0.0.RELEASE</version>   </dependency>   <dependency>           <groupId>org.springframework.security</groupId>           <artifactId>spring-security-core</artifactId>           <version>5.0.0.RELEASE</version>   </dependency>   <dependency>           <groupId>org.springframework.security</groupId>           <artifactId>spring-security-config</artifactId>           <version>5.0.0.RELEASE</version>   </dependency>   Controler Class import org.springframework.stereotype.Controller;  import org.springframework.web.bind.annotation.RequestMapping;  import org.springframework.web.bind.annotation.RequestMethod;    @Controller  public class HomeController {            @RequestMapping(value=”/”, method=RequestMethod.GET)      public String home() {          return “home”;      }            @RequestMapping(value=”/admin”, method=RequestMethod.GET)      public String privateHome() {          return “privatePage”;      }  }   Security.xml <beans:beans xmlns=”http://www.springframework.org/schema/security”       xmlns:beans=”http://www.springframework.org/schema/beans”       xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”       xsi:schemaLocation=”http://www.springframework.org/schema/beans       http://www.springframework.org/schema/beans/spring-beans.xsd       http://www.springframework.org/schema/security  ...

Spring Security dependancy 0

Spring Security dependancy

Remoting – spring-security-remoting.jar This jar is used to integrate security feature into the Spring remote application. We don’t need it until or unless we are creating...