Java
-
JWT, JWS, JWE, JWA, and JWKWeb/Security 2019. 8. 27. 21:53
1. Overview JWT is used to transport user identity/entitlements between interested parties in a secure manner. JWS and JWE are instances of the JWT when used compact serialization JWS and JWE can be serialized using either the compact serialization or JSON serialization JWT doesn't' define a specific binding, but in practice, JWT tokens are transported over HTTPS under the Authorization Bearer h..
-
Spring SessionFramework/SPRING 2019. 8. 27. 21:48
1. Overview Spring Session provides an API and implementations for managing a user’s session information. Spring Session has the simple goal of free up session management from the limitations of the HTTP session stored in the server. Spring Session to manage authentication information in a web app. While Spring Session can persist data using JDBC, Gemfire, or MongoDB, or in-memory Redis. 2. When..
-
FunctionalStaticPL/JAVA 2019. 8. 27. 20:46
1. Overview The term Java functional interface was introduced in Java 8. A functional interface in Java is an interface that contains only a single abstract (unimplemented) method. A functional interface can contain default and static methods which do have an implementation, in addition to the single unimplemented method. 1.1 Without Implementation public interface MyFunctionalInterface { public..
-
Generics and Generic MethodsStaticPL/JAVA 2019. 8. 27. 11:45
1. Overview Generic was designed to extend Java's type system to allow "a type or method to operate on objects of various types while providing compile-time type safety". The aspect of compile-time type safety was not fully achieved since it was shown in 2016 that it is not guaranteed in all classes. 2. Motivation Ensure type safety Ensure that generics wouldn't cause an overhead at runtime whic..
-
ReflectionStaticPL/JAVA 2019. 8. 27. 08:40
1. Overview It stands for modifying or examing the behavior of methods, classes, and interfaces at runtime. java.lang.reflect packages required classes for reflection It gives us information about the class to which an object belongs and also the methods of that class which can be executed by using the object. Being able to invoke methods at runtime irrespective of the access specifier used with..
-
Servlet and Common Gateway Interface(CGI)DevOps/Server 2019. 8. 23. 20:48
1. Overview Servlet technology is used to create a web application which resided at server-side and generate a dynamic web page. Servlet technology is robust and scalable because of java language. Before Servlet, Common Gateway Interface(CGI) scripting language was common as a serverside programming language. However, there were many disadvantages to this technology. 2. Description 2.1 Common Ga..
-
Fork Join frameworkStaticPL/JAVA 2019. 8. 23. 12:58
1. Overview The fork/join framework was presented in Java 7. It provides tools to help speed up parallel processing by attempting to use all available processor cores – which is accomplished through a divide and conquer approach. In practice, this means that the framework first “forks”, recursively breaking the task into smaller independent subtasks until they are simple enough to be executed as..
-
Garbage Collection (GC)StaticPL/JAVA 2019. 8. 23. 06:51
1. Overview Since Java oriented programs don't deallocate memory explicitly, Garbage collection tracks each and every object available in the JVM space and removes unused ones. GC works in two simple steps known as Mark and Sweep. 2. Minor GC Collecting garbage from Young space (consisting of Eden and Survivor spaces) is called a Minor GC. This definition is both clear and uniformly understood. ..