Profile cover photo
Profile photo
Hantsy Bai
181 followers -
Coding for fun
Coding for fun

181 followers
About
Posts

Post has attachment
Add a comment...

Post has attachment
Secures your applications with Spring Security 5 and Keycloak
Spring Security 5 brought new OAuth2/OIDC client instead of the
legacy client support in the old Spring Security OAuth sub project. The
new
OAuth2 umbrella modules in the core project will replace the old Spring
Security OAuth, Spring Social etc. In the...
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Build a Reactive application with Angular 5 and Spring Boot 2.0
I have created a post to describe Reactive programming supports in Spring 5 and its
subprojects, all codes of this article are updated the latest Spring 5
RELEASE, check spring-reactive-sample under my Github account. In this post, I will create a simple ...
Add a comment...

Post has attachment
Java EE Security API 1.0: SecurityContext
SecurityContext In Java EE 7 or earlier versions, other specfications, such as
Servelt, EJB, JAX-RS, JAX-WS, etc. have their own specific APIs to query
current security context. Servlet - HttpServletRequest#getUserPrincipal, HttpServletRequest#isUserInRo...
Add a comment...

Post has attachment
Java EE Security API 1.0: IdentityStore
There are two built-in IdentityStore implementations provided in Glassfish v5, Database or Ldap. An example of using built-in @DatabaseIdentityStoreDefinition to setup database based IdentityStore . @DatabaseIdentityStoreDefinition ( dataSourceLookup = " ${...
Add a comment...

Post has attachment
Java EE Security API 1.0: HTTP authentication
HTTP authentication HttpAuthenticationMechanism allow customsize your own HTTP authentication mechanism. An examples for custom HttpAuthenticationMechanism . @ApplicationScoped public class TestAuthenticationMechanism implements HttpAuthenticationMechanism ...
Add a comment...

Post has attachment
Servlet 4.0: Http Trailer
Http Trailer Servlet 4.0 added Http Trailer( RFC 7230 ) supports, which is a specific collection of http headers comes after response body. It is useful in some case, such as chunked transfer encoding or implements some specific protocols. The reading side,...
Add a comment...

Post has attachment
Servlet 4.0: Runtime Discovery of Servlet Mappings
Runtime Discovery of Servlet Mappings When a servlet is activated, the mapping info can be discoverable at runtime. Described in the Servlet spcefication. The method getHttpServletMapping() on HttpServletRequest returns an
HttpServletMapping implementation ...
Add a comment...

Post has attachment
Servlet 4.0: HTTP/2 Server PUSH
Server Push One highlight feature of HTTP/2 is Server Push. Servlet 4.0 add PushBuilder to handle push. An exmaple of enable Servlet Push. @WebServlet ( urlPatterns = " " ) @ServletSecurity ( httpMethodConstraints = { @HttpMethodConstraint ( value = " GET "...
Add a comment...
Wait while more posts are being loaded