wiki:KrakenRadius

Kraken RADIUS

Kraken RADIUS provides OSGi based modularized RADIUS server and client components. RADIUS is a networking protocol that provides centralized Authentication, Authorization, and Accounting management for computers to connect and use a network service. (from  Wikipedia)

Author

Client

PAP Authentication

You can easily authenticate using following code:

RadiusClient client = new RadiusClient(addr, sharedSecret);
PapAuthenticator pap = new PapAuthenticator(client, userName, password);
RadiusPacket response = client.authenticate(pap);
System.out.println(response);

client.authenticate() will return AccessAccept or AccessReject object.

CHAP Authentication

Just use another Authenticator like this:

RadiusClient client = new RadiusClient(addr, sharedSecret);
ChapAuthenticator chap = new ChapAuthenticator(client, userName, password);
RadiusPacket response = client.authenticate(chap);
System.out.context.println(response);

Server

Concept

LDAP Authentication

Maven configuration

<dependency>
	<groupId>org.krakenapps</groupId>
	<artifactId>kraken-radius</artifactId>
	<version>0.6.1</version>
</dependency>