Blog Posts per Tag

SignServer: Application framework in Java performing cryptographic operations

The SignServer [1] is an application framework performing cryptographic operations for other applications. It’s intended to be used in environments where keys are supposed to be protected in hardware but there isn’t possible to connect such hardware to existing enterprise applications or where the operations are considered extra sensitive so the hardware have to protected more carefully. Another usage is to provide a simplified method to provide signatures in different application managed from one location in the company.

Read More →

LDAP Authentication using Java

import javax.naming.*; import*; import java.util.Hashtable; /** * Demonstrates how to create an initial context to an LDAP server * using simple authentication. */ class Simple { public static void main(String[] args) { Hashtable authEnv = new Hashtable(11); String userName = "johnlennon"; String passWord = "sushi974"; String base = "ou=People,dc=example,dc=com"; String dn = "uid=" + userName + "," + base; String ldapURL = "ldap://"; authEnv.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory"); authEnv.put(Context.PROVIDER_URL, ldapURL); authEnv.put(Context.SECURITY_AUTHENTICATION, "simple"); authEnv.put(Context.SECURITY_PRINCIPAL, dn); authEnv.

Read More →