Here I’m going to explain how to send byte stream over the WebSocket using Spring. I have implemented a completed project using Springboot.
Please visit here to get a completed version. I’m planning to do the same example using pure Java API in the upcoming blog post.
In this blog post, I am going to explain to you about JWE authentication and how we encrypt and decrypt sensitive data. Before point out to the JWE let’s have a quick introduction of his parent object called JWT.
JSON web token (JWT) use as a container to transport sensitive data between two different or multiple places(Ex: Client/ Server). This informations can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.
Mainly a JWT can be used to:
This post will show you how to authenticate the Springboot REST API application using JWT authentication. To do this process I’m going to use a HandlerInterceptor class provided by the spring framework.
JSON Web Token, or JWT, is a specification for the representation of claims to be transferred between two parties. The claims are encoded as a JSON object used as the payload of an encrypted structure, enabling the claims to be digitally signed or encrypted.
This post will show you how to authenticate the Springboot REST API application using basic authentication. To do this process I’m going to use a HandlerInterceptor class provided by the spring framework.
Basic authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string username: password. …
In this post, I am going to describe the Spring MVC HandlerInterceptor, its usage, and behavior.
Before going to the HandlerInterceptor let’s discuss a bit about HandlerMapping.It is used to maps a method to a particular URL.So that the DispatcherServlet will be able to invoke it when processing a request. Also, the DispatcherServlet uses the HandlerAdapter to invoke the method.
Now we have a quick idea about the context and this is the time HandlerInterceptor comes into the play. It has three stages like actions before handling, after handling, and after completion (Rendering view object).
In the projects, we…
This post will show you how to integrate caching DB into your SpringBoot application. There are 2 ways to do this implementation. One is using the Jedis library and the other one is spring framework related dependency called spring-data-redis library. In this post, I’m going to use the Jedis library. I will post an article about using spring-data-redis library soon.
Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Here we are using it for caching purposes.
In the industry, we are using Redis for caching purposes. It helps increase application…
These days we have a couple of technologies to integrate email service with java application. But out of them “Thymeleaf email integration” is an outstanding way to send an email.
So here we are going to explain “How to integrate Thymeleaf email service into SpringBoot REST web service” with A-Z steps. Before going to the implementation, you can download the full java code example from here. In this example, I will be sending an email with the employee’s salary details.
These days web applications are developing as separate modules(back-end/front-end). In this kind of scenario, we should have proper documentation with informative, readable, and user friendly. Here, we will look at Swagger 2.0 for the Springboot REST web service using Springfox implementation.
To describe the Swagger implementation, I’m using the Employee management CRUD application, which developed using SpringBoot. Apart from the swagger implementation, you can learn domain driven architecture, proper exception handling, logging, validation, etc. But here I’m going to explain only about swagger integration. Please visit the bitbucket link here to download the full example application.
Experienced Software Engineer with a demonstrated history of working in the information technology and services industry. Skilled in JAVA,Spring Boot, Angular.