IT Security Definitions
Vulnerability - is a weakness which allows an attacker to reduce a system's securityThreat - a possible danger that someone exploits a vulnerability.Risk - the likelihood that someone exploits a...
View ArticleIT Security Control Types
Control types can be:Administrative (soft control) - documentation, risk management, personnel training.Technical (logical control) - software and hardware componentsPhysical - fences, guard, swipe...
View ArticleIT Security Risk Analysis
Good questions:What event could occur (threat event)?What could be the potential impact (risk)?How often could it happen (frequency)?How sure are you about the answer above (certainty)?
View ArticleManaging Java CA Certificate for Applets and Java Web Start
If you deploy an applet or a java web start application and they either communicate back to a https protected web server or is signed with a certificate which CA cert is not part of the standard java...
View ArticleHow to unpack .jar.pack.gz
The .jar.pack.gz is a Oracle package format that can be unpacked with unpack200 binary that is shipped with the SDK. # unpack200 your-file.jar.pack.gz your-file.jarReference:...
View ArticleHow to Debug an Applet or Java Web Start Application
Open Java Control Panel and select tab Advanced and enable "Enable tracing", "Enable logging" and "Show applet lifecycle exception". Apply and close web broser and open RIA, Rich Internet Applicatio,...
View ArticleJava JSSE Default Truststore
"Creating an X509TrustManagerYou can either implement this interface directly yourself or obtain one from a provider-based TrustManagerFactory (such as that supplied by the SunJSSE provider). You could...
View ArticleJava EE 7 Designing JAX-RS with System Test
Whenever building a Java EE 6 or 7 application always use the javax:javaee-api maven dependency and only that. So lets start with a Java EE 7 maven pom.xml<?xml version="1.0"...
View ArticleMaking Reusable JUnit Setup with TestRule and @Rule
In the below JAX-RS test we can extract the setup code to a reusable JUnit TestRule class.public class EmployeeRestIT { private Client client; private WebTarget target; @Before public void setUp()...
View ArticleJava EE 7 Cross Cutting Interceptor Example
Lets say you need a logging feature for all you business class. Instead of writing repeatable code in yours businesses classes, lets use a Java EE 7 interceptor instead.package...
View ArticleJava EE 7 Performance Monitor with Interceptors, Event and Observes
Lets say you want to performance monitor your business class, that can be achieved with Java EE 7 Interceptors and @Observes. Lets start with the interceptor. Here will only want to encapsulate the...
View ArticleJava EE 7 Implementing Statistics with Interceptor, CDI Observes and...
Java EE 7 comes with many built in techniques. Lets add statistics to our application.First we use the Interceptor to interceptor our method that we want to get performance statistics from.package...
View ArticleJava 8 Nashorn Using JavaScript on the JVM
Nashorn is the official JavaScript Engine in the Java Virtual Machine since Version 8. It supports and implements the ECMAScript 5.1 specification and competes among others directly with Google V8 (the...
View ArticleJava EE 7 Simple WebSocket Example
One of the new technologies in Java EE 7 is WebSockets. A killer use case for web sockets is when a client need push notifications from the server. Previously such a client needed to constantly ask the...
View ArticleJava EE 7 and What is New?
Overview Java EE 7Reference https://www.slideshare.net/ankarajug/java-ee7-in-actionJMS 2.0Fluent APIsUnchecked exceptionsMDB activation properties, JMS resource definition, defaultJMS resourcesJava API...
View ArticleHTTP Keep-Alive aka Persistant Connection with Apache httpd
HTTP Keep-Alive is also known as persistent connection. In the HTTP response you have Connection:Keep-Alive Keep-Alive:timeout=5, max=100And to configure this in Apache httpd # #...
View ArticleThe Java EE 8 specification (JSR 366) Released 18 Sep, 2017.
The Java EE 8 specification (JSR 366) was released 18 Sep 2017.https://jcp.org/en/jsr/detail?id=366"What's New in Java EE 8Java EE 8 continues to improve API and programming models needed for today's...
View ArticleJava EE 7 Concurrency Utilities (JSR 236) and Example
IntroductionThe Concurrency Utilities (JSR 236) is completely new in Java EE 7 and is also new in the Java EE mindset. In previous Java EE version the idea of creating new threads was forbidden and the...
View ArticleJava EE 7 and 8 examples at GitHub
Java EE 7 examples (JBoss EAP 7)https://github.com/jboss-developer/jboss-eap-quickstartsJava EE 8 examples (Oracle Tutorial)https://github.com/javaee/tutorial-examples
View ArticleInstalling and Testing Dogtag Certificate System 10 on CentOS 7
IntroductionDogtag Certificate System is CA and is the upstream project for Red Hat Certificate System.PrerequisiteCentOS 7# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) Check that FQDN...
View Article