public SyslogReceiverTLS(Connection conn, Socket s) { this.conn = conn; this.s = s; this.arr = conn.getDevice().getDeviceExtensionNotNull(AuditRecordRepository.class); }
HL7Receiver(Connection conn, Socket s) { this.conn = conn; this.s = s; this.hl7dev = conn.getDevice().getDeviceExtensionNotNull(HL7DeviceExtension.class); }
public SyslogReceiverUDP(Connection conn, DatagramPacket packet) { this.conn = conn; this.packet = packet; this.arr = conn.getDevice().getDeviceExtensionNotNull(AuditRecordRepository.class); }
void setDevice(Device device) { if (device != null) { if (this.device != null) throw new IllegalStateException("already owned by " + this.device.getDeviceName()); for (Connection conn : conns) if (conn.getDevice() != device) throw new IllegalStateException(conn + " not owned by " + device.getDeviceName()); } this.device = device; }
void setDevice(Device device) { if (device != null) { if (this.device != null) throw new IllegalStateException("already owned by " + this.device.getDeviceName()); for (Connection conn : conns) if (conn.getDevice() != device) throw new IllegalStateException(conn + " not owned by " + device.getDeviceName()); } this.device = device; }
void setDevice(Device device) { if (device != null) { if (this.device != null) throw new IllegalStateException("already owned by " + this.device.getDeviceName()); for (Connection conn : conns) if (conn.getDevice() != device) throw new IllegalStateException(conn + " not owned by " + device.getDeviceName()); } this.device = device; }
void setDevice(Device device) { if (device != null) { if (this.device != null) throw new IllegalStateException("already owned by " + this.device.getDeviceName()); for (Connection conn : conns) if (conn.getDevice() != device) throw new IllegalStateException(conn + " not owned by " + device.getDeviceName()); } this.device = device; }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.DICOM) throw new IllegalArgumentException( "protocol != DICOM - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by Device: " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HTTP) throw new IllegalArgumentException( "Web Application does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HL7) throw new IllegalArgumentException( "protocol != HL7 - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HTTP) throw new IllegalArgumentException( "Web Application does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
@Override public void onAccept(Connection conn, Socket s) throws IOException { conn.getDevice().execute(new HL7Receiver(conn, s)); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.DICOM) throw new IllegalArgumentException( "protocol != DICOM - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by Device: " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Logger does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
@Override public void onAccept(Connection conn, Socket s) throws IOException { conn.getDevice().execute(new SyslogReceiverTLS(conn, s)); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Logger does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Record Repository does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Record Repository does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
private ServerSocket createTLSServerSocket(Connection conn) throws IOException, GeneralSecurityException { SSLContext sslContext = conn.getDevice().sslContext(); SSLServerSocketFactory ssf = sslContext.getServerSocketFactory(); SSLServerSocket ss = (SSLServerSocket) ssf.createServerSocket(); ss.setEnabledProtocols(conn.getTlsProtocols()); ss.setEnabledCipherSuites(conn.getTlsCipherSuites()); ss.setNeedClientAuth(conn.isTlsNeedClientAuth()); return ss; }
private ServerSocket createTLSServerSocket(Connection conn) throws IOException, GeneralSecurityException { SSLContext sslContext = conn.getDevice().sslContext(); SSLServerSocketFactory ssf = sslContext.getServerSocketFactory(); SSLServerSocket ss = (SSLServerSocket) ssf.createServerSocket(); ss.setEnabledProtocols(conn.getTlsProtocols()); ss.setEnabledCipherSuites(conn.getTlsCipherSuites()); ss.setNeedClientAuth(conn.isTlsNeedClientAuth()); return ss; }