/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceScheduleImpl/local") public interface ServiceScheduleLocal extends ServiceSchedule { }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSuiviImpl/local") public interface ServiceSuiviLocal extends ServiceSuivi { }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceScheduleImpl/local") public interface ServiceScheduleLocal extends ServiceSchedule { }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSuiviImpl/local") public interface ServiceSuiviLocal extends ServiceSuivi { }
/** * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSynchNumberImpl/local") public interface ServiceSynchNumberLocal extends ServiceSynchNumber { }
/** * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSynchNumberImpl/local") public interface ServiceSynchNumberLocal extends ServiceSynchNumber { }
@Local @LocalBinding(jndiBinding="InjectorIBUImpl/local") public interface InjectorIBULocal extends InjectorIBU { }
@Local @LocalBinding(jndiBinding="ServiceWebImpl/local") public interface ServiceWebLocal extends ServiceWeb { }
@Local @LocalBinding(jndiBinding="ServiceTourImpl/local") public interface ServiceTourLocal extends ServiceTour { }
@Local @LocalBinding(jndiBinding="InjectorIBUImpl/local") public interface InjectorIBULocal extends InjectorIBU { }
@Local @LocalBinding(jndiBinding="ServiceNotifierImpl/local") public interface ServiceNotifierLocal extends ServiceNotifier { }
@Local @LocalBinding(jndiBinding="ServiceNotifierImpl/local") public interface ServiceNotifierLocal extends ServiceNotifier { }
@Local @LocalBinding(jndiBinding="ServiceTourImpl/local") public interface ServiceTourLocal extends ServiceTour { }
@Local @LocalBinding(jndiBinding="ServiceWebImpl/local") public interface ServiceWebLocal extends ServiceWeb { }
/** * Administrator Authorization Service Bean implementation. * * @author wvdhaute */ @Stateless @Local(AuthenticationService.class) @LocalBinding(jndiBinding = TrustServiceConstants.TRUST_JNDI_CONTEXT + "AuthenticationServiceBean") public class AuthenticationServiceBean implements AuthenticationService { private static final Log LOG = LogFactory .getLog(AuthenticationServiceBean.class); public void validateCertificateChain(List<X509Certificate> certificateChain) throws SecurityException { LOG.debug("validate"); // do nothing } }
/** * eID Applet Service Authentication Service implementation for the admin * portal. * * @author Frank Cornelis */ @Stateless @Local(AuthenticationService.class) @LocalBinding(jndiBinding = AdminConstants.ADMIN_JNDI_CONTEXT + "AuthenticationServiceBean") public class AdminAuthenticationServiceBean implements AuthenticationService { private static final Log LOG = LogFactory .getLog(AdminAuthenticationServiceBean.class); public void validateCertificateChain(List<X509Certificate> certificateChain) throws SecurityException { LOG.debug("validate certificate: " + certificateChain.get(0).getSubjectX500Principal()); // nothing to do here as we accept all certificates } }
@Stateless @Local(AuthenticationService.class) @LocalBinding(jndiBinding = AdminConstants.ADMIN_JNDI_CONTEXT + "AuthenticationServiceBean") public class AuthenticationServiceBean implements AuthenticationService { private static final Log LOG = LogFactory .getLog(AuthenticationServiceBean.class); @Override public void validateCertificateChain(List<X509Certificate> certificateChain) throws ExpiredCertificateSecurityException, RevokedCertificateSecurityException, TrustCertificateSecurityException, CertificateSecurityException, SecurityException { /* * Admin trust is based on the public key only. */ LOG.debug("validateCertificateChain"); } }
@Stateless @Local(TransportService.class) @LocalBinding(jndiBinding = Constants.IDP_JNDI_CONTEXT + "TransportServiceBean") public class TransportServiceBean implements TransportService { @EJB private Configuration configuration; @Override public StrictTransportSecurityConfig getStrictTransportSecurityConfig() { Boolean hsts = this.configuration.getValue(ConfigProperty.HSTS, Boolean.class); if (null == hsts) { return null; } if (false == hsts) { return null; } return new StrictTransportSecurityConfig(365 * 24 * 60 * 60, true); } }
@Stateless @Local(TransportService.class) @LocalBinding(jndiBinding = Constants.DSS_JNDI_CONTEXT + "TransportServiceBean") public class TransportServiceBean implements TransportService { private static final Log LOG = LogFactory .getLog(TransportServiceBean.class); @EJB private Configuration configuration; public StrictTransportSecurityConfig getStrictTransportSecurityConfig() { Boolean hsts = this.configuration.getValue( ConfigProperty.SECURITY_HSTS, Boolean.class); LOG.debug("HSTS: " + hsts); if (null == hsts) { return null; } if (false == hsts) { return null; } return new StrictTransportSecurityConfig(365 * 24 * 60 * 60, true); } }
@Stateless @Name(AdminConstants.ADMIN_SEAM_PREFIX + "authenticator") @LocalBinding(jndiBinding = AdminConstants.ADMIN_JNDI_CONTEXT + "AuthenticatorBean") public class AuthenticatorBean implements Authenticator { private static final org.apache.commons.logging.Log LOG = LogFactory .getLog(AuthenticatorBean.class); @In private Identity identity; @In(value = "eid.certs.authn", scope = ScopeType.SESSION) private X509Certificate authenticatedCertificate; @EJB private AdminManager adminManager; public boolean authenticate() { LOG.debug("authenticate: "); if (this.adminManager.isAdmin(this.authenticatedCertificate)) { this.identity.addRole("admin"); } return true; } }