Spring Security – @PreFilter and @PostFilter 1. Overview In this article, we’ll learn how to use the @PreFilter and @PostFilter annotations to secure operations in a Spring application. When used together with the authenticated principal information, @PreFilter and @PostFilter allows us to define fine-grained security rules using Spring Expression Language.… Continue Reading spring-security-prefilter-postfilter

Spring Security Kerberos Integration 1. Overview In this tutorial, we’ll provide an overview of Spring Security Kerberos. We’ll write a Kerberos client in Java that authorizes itself to access our Kerberized service. And we’ll run our own embedded Key Distribution Center to perform full, end-to-end Kerberos authentication. All that, without… Continue Reading spring-security-kerberos-integration

The Difference Between Collection.stream().forEach() and Collection.forEach() 1. Introduction There are several options to iterate over a collection in Java. In this short tutorial, we’ll look at two similar looking approaches — Collection.stream().forEach() and Collection.forEach(). In most cases, both will yield the same results, however, there are some subtle differences we’ll… Continue Reading java-collection-stream-foreach