Quantcast
Channel: Magnus K Karlsson
Browsing all 526 articles
Browse latest View live

OpenID Connect explained

http://connect2id.com/learn/openid-connectOr slides version http://connect2id.com/assets/oidc-explained.pdf

View Article


How to Create Custom Launch Icon in Ubuntu

For details see https://help.gnome.org/admin//system-admin-guide/2.32/menustructure-desktopentry.html.en

View Article


Create PublicKey and PrivateKey in Java 8

See also sun.security.tools.keytool.CertAndKeyGen.

View Article

Java 8 - Lambda Expressions

SyntaxOptional type declaration − No need to declare the type of a parameter. The compiler can inference the same from the value of the parameter.Optional parenthesis around parameter − No need to...

View Article

Java 8 - Streams

What is Stream?A sequence of elements supporting sequential and parallel aggregate operations.How to create?The java.util.Collection interface has two methods:stream()parallelStream() - supports...

View Article


Java 8 - Base64

Java 8 now supports java.util.Base64.Base64.getEncoder()/Base64.getDecoder() - Output is mapped to a set of characters lying in A-Za-z0-9+/.Base64.getUrlEncoder()/Base64.getUrlDecoder() - Output is...

View Article

Internationalization (i18n) with ResourceBundle and Properties

To externalize local messages, Java have the java.util.ResourceBundle class.Create a properties file for the default locale. Then create a new properties for each locale with the suffix...

View Article

MySQL – Backup and Restore

BackupRestore

View Article


Java 7 - Implement equals() and hashCode() with java.util.Objects

When using JPA you should implement equals() and hashCode() if youIntend to put instances of persistent classes in a Set.Intend to use reattachment of detached instances.For JDK 7 and above, you can...

View Article


Configuration in Java EE 6

BackgroundDependency Injection has come strong in Java EE 6, which is widely influenced from Spring Framework.You can use the same pattern to handle configuration.CodeAnd to use itAnd finally you need...

View Article

JDK Logger/Java Logging API

BackgroundSince JDK 1.4 there is a default Logging API in Java. The entire Logging API is contained in the package java.util.logging.Reference:...

View Article

BDD Testing with Cucumber, Java and JUnit

IntroductionBDD (Behaviour-Driven Development) is about designing code by defining your application in terms of behavior.You start by gathering Tester, Developer and Product Owner (The Three Amigos)...

View Article

Spring vs EJB vs CDI Benchmark

Thoughtful https://github.com/samolisov/spring-vs-ejb-vs-cdi-benchmark/p>

View Article


JavaFX WYSIWYG (What-You-See-Is-What-You-Get) Editor - Scene Builder

Download Debian package, RPM or Windows Installer from http://gluonhq.com/labs/scene-builder/.

View Article

Jackson Standard JSON library for Java

IntroductionJackson is build up by the following modules:Streaming: "jackson-core"Annotations: "jackson-annotations"Databind: "jackson-databind" implements data-binding (and object...

View Article


Elliptic Curve Keys with OpenSSL

List pre-defined curves in OpenSSL:Generate private key:Generate public key:Reference: https://wiki.openssl.org/index.php/Command_Line_Elliptic_Curve_Operations

View Article

How to Set Hostname on RHEL 7

To change permanent:# hostnamectl set-hostname openam.example.comReboot and verify.# hostnamectl status

View Article


Debugging HTTP Request in JBoss EAP 7

<subsystem xmlns="urn:jboss:domain:undertow:3.1"> ...<server name="default-server"> ...<host name="default-host" alias="localhost"> ...<filter-ref...

View Article

Subscription Management in RHEL 7

Register first, then manually add a subscription.# subscription-manager registerList all available subscription.# subscription-manager list --available --allAttach a specific subscription.#...

View Article

Java EE 6 Security

BackgroundA general introduction can be found at Oracle Java EE 6 Tutorial Security. Here follow a summary with code examples and some pitfalls for JBoss EAP 6.WebURL security is done WEB-INF/web.xml,...

View Article
Browsing all 526 articles
Browse latest View live