Java Smart Card APDU Commands
Almost all smart card are Java Smart Card based. You can manage smart card via the Java Smart Card SDK, but you can also access the card via standard Java SE and javax.smartcardio API.To do that you...
View ArticleScanning Your System with OpenSCAP
With SCAP and a good policy you can centrally scan your system and verify that they are properly secured and get a nice automatically report at the end.ResourceWhat Are “STIGs” and How Do They Impact...
View ArticleUsing JAAS in Tomcat Example
JAAS is part of the Java SE since Java 5, so choosing that API, when you want to deploy to only a web container, such as Tomcat or Jetty, is a good choice./META-INF/context.xml. See where best to put...
View ArticleJSF 2.0 (EE 6) Feature Red Hat JBoss EAP 6
Feature in JSF 2.0 (EE 6) GitHub JsfApplicationJboss.
View ArticleSecurity Testing in the Build Pipeline
PMDPMD is a source code analyzer tool, but also have Copy/Paste Detector tool (CPD). https://maven.apache.org/plugins/maven-pmd-plugin/index.html<project xmlns="http://maven.apache.org/POM/4.0.0"...
View ArticleJSF UI Components Overview
https://www.javatpoint.com/jsf-ui-componentshttps://www.tutorialspoint.com/jsf/index.htm
View ArticleOracle Code One 2018 Keynote by Mark Reinhold Chief Architect
Entire Keynotehttps://www.youtube.com/watch?v=RFF2SfPMfpkOracle JDK for Windows is Not Free Anymore Oracle JDK for Windows is Not Free Anymore Subscription$ 25.00 per month per processer$ 2.50 per...
View ArticleTestNG
Comparison with JUnitTestNG is a direct competitor with JUnit. But that may change with JUnit 5.The main advantage of TestNG compared with JUnit 4, is that TestNG has build in support of Data Provider...
View ArticleGetting Started with Spring MVC
The OLD XML Configurationpom.xml. The jstl and servlet-api is only need if you use JSTL in your JSP pages.<?xml version="1.0" encoding="UTF-8"?><project...
View ArticleSpring Security
What is it?A security framework, that competes with a framework that are built in Java EE and theirs servers. And is a mandatory requirement when running Spring Boot.PrerequisiteWill use Spring Tools...
View ArticleHow to Enable RequestDump in JBoss EAP 6 and 7
What is RequestDump?It is a great debugging tool, that prints HTTP request and response in jboss server.log.JBoss EAP EAP 6.1.0 or laterEdit standalone.xml.<subsystem...
View ArticleSet HttpOnly and secure for Cookies in JBoss EAP 6 and 7
What is Cookie HttpOnly and secure?ExampleSet-Cookie: a=b; HttpOnly; SameSite=strict; secure HttpOnly = No JavaScriptSameSite = no cross-origin cookie sharingsecure = SSL onlySameSite is not yet...
View ArticleSetting Global HTTP Session Timeout in JBoss EAP 6 and 7
JBoss EAP 6.xEdit standalone.xml.<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false" default-session-timeout="15">...</subsystem>JBoss EAP...
View ArticleRPM Installation of WildFly 15 on CentOS 7
PrerequisiteCentOS 7. I use minimal installation. I also need wget to download harbottle rpm repo (https://pkgs.org/download/wildfly), from which I will need to install WilfFly from. The harbottle repo...
View ArticleSyslog Handler in JBoss EAP 6 and 7
IntroductionJBoss EAP 6 and 7 has a two different syslog handler:syslog-handlercustom-handler org.jboss.logmanager.handlers.SyslogHandlersyslog-handlerThe default syslog-handler only supports UDP.$...
View ArticleEntity Control Boundary (ECB) Pattern
IntroductionThe Entity Control Boundary (ECB) pattern is and old pattern that was published by Ivar Jacobson (Ericsson Co.) in 80's. It is has things in common with the Model View Controller (MVC)...
View ArticleGetting Started with JSF 2.3 (Java EE 8)
IntroductionJSF 2.3 comes with Java EE 8.MavenAdd Java EE 8 dependency and Java 11 (latest Java LTS version).<?xml version="1.0" encoding="UTF-8"?><project...
View ArticleGetting Started with JSF 2.3 and Bootstrap 4
IntroductionThe most popular CSS framework today is Bootstrap.We are now going to add Bootstrap to my previous getting started JSF 2.3 (Java EE 8).Starting...
View ArticleGenerating Test Data - JavaFaker
JavaFaker is good library for generating localized faked test...
View ArticleVlad Mihalcea High-Performance Hibernate Tutorial
IntroductionBelow is a short summary of the most important things when designing JPA. For complete tutorial see https://vladmihalcea.com/tutorials/hibernate/.@Id - Database-generated identifiers...
View Article