All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rtdi.appcontainer.postgresqlrealm.PostgreSQLRealm Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
package io.rtdi.appcontainer.postgresqlrealm;

import java.security.Principal;
import java.sql.SQLException;

import io.rtdi.appcontainer.databaseloginrealm.DatabaseLoginRealm;

public class PostgreSQLRealm extends DatabaseLoginRealm {

	public PostgreSQLRealm() {
		super();
	}
	
	@Override
	protected Principal createNewPrincipal(String username, String credentials, String jdbcurl) throws SQLException {
		return new PostgreSQLPrincipal(username, credentials, jdbcurl); // this does throw a SQLException in case the login data is invalid
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy