/** * Overriding in order to add the client's certificates to ConnectionInfo * Commmands. * * @param command The Command coming in. */ @Override public void doConsume(Object command) { // The instanceof can be avoided, but that would require modifying the // Command clas tree and that would require too much effort right // now. if (command instanceof ConnectionInfo) { ConnectionInfo connectionInfo = (ConnectionInfo)command; connectionInfo.setTransportContext(getPeerCertificates()); } super.doConsume(command); }
public X509Certificate[] getPeerCertificates() { if(next instanceof SslTransport) { X509Certificate[] peerCerts = ((SslTransport)next).getPeerCertificates(); if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; } return null; }
@Override public X509Certificate[] getPeerCertificates() { X509Certificate[] peerCerts = null; if (next instanceof SslTransport) { peerCerts = ((SslTransport) next).getPeerCertificates(); } else if (next instanceof NIOSSLTransport) { peerCerts = ((NIOSSLTransport) next).getPeerCertificates(); } if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; }
@Override public X509Certificate[] getPeerCertificates() { X509Certificate[] peerCerts = null; if (next instanceof SslTransport) { peerCerts = ((SslTransport) next).getPeerCertificates(); } else if (next instanceof NIOSSLTransport) { peerCerts = ((NIOSSLTransport) next).getPeerCertificates(); } if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; }
@Override public X509Certificate[] getPeerCertificates() { X509Certificate[] peerCerts = null; if (next instanceof SslTransport) { peerCerts = ((SslTransport) next).getPeerCertificates(); } if (next instanceof NIOSSLTransport) { peerCerts = ((NIOSSLTransport)next).getPeerCertificates(); } if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; }
@Override public X509Certificate[] getPeerCertificates() { X509Certificate[] peerCerts = null; if (next instanceof SslTransport) { peerCerts = ((SslTransport) next).getPeerCertificates(); } if (next instanceof NIOSSLTransport) { peerCerts = ((NIOSSLTransport)next).getPeerCertificates(); } if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; }
@Override public X509Certificate[] getPeerCertificates() { X509Certificate[] peerCerts = null; if (next instanceof SslTransport) { peerCerts = ((SslTransport) next).getPeerCertificates(); } if (next instanceof NIOSSLTransport) { peerCerts = ((NIOSSLTransport)next).getPeerCertificates(); } if (trace && peerCerts != null) { LOG.debug("Peer Identity has been verified\n"); } return peerCerts; }
/** * Overriding in order to add the client's certificates to ConnectionInfo * Commmands. * * @param command The Command coming in. */ @Override public void doConsume(Object command) { // The instanceof can be avoided, but that would require modifying the // Command clas tree and that would require too much effort right // now. if (command instanceof ConnectionInfo) { ConnectionInfo connectionInfo = (ConnectionInfo)command; connectionInfo.setTransportContext(getPeerCertificates()); } super.doConsume(command); }
/** * Overriding in order to add the client's certificates to ConnectionInfo * Commmands. * * @param command The Command coming in. */ @Override public void doConsume(Object command) { // The instanceof can be avoided, but that would require modifying the // Command clas tree and that would require too much effort right // now. if (command instanceof ConnectionInfo) { ConnectionInfo connectionInfo = (ConnectionInfo)command; connectionInfo.setTransportContext(getPeerCertificates()); } super.doConsume(command); }
/** * Overriding in order to add the client's certificates to ConnectionInfo * Commmands. * * @param command The Command coming in. */ @Override public void doConsume(Object command) { // The instanceof can be avoided, but that would require modifying the // Command clas tree and that would require too much effort right // now. if (command instanceof ConnectionInfo) { ConnectionInfo connectionInfo = (ConnectionInfo)command; connectionInfo.setTransportContext(getPeerCertificates()); } super.doConsume(command); }
/** * Overriding in order to add the client's certificates to ConnectionInfo * Commmands. * * @param command The Command coming in. */ public void doConsume(Object command) { // The instanceof can be avoided, but that would require modifying the // Command clas tree and that would require too much effort right // now. if (command instanceof ConnectionInfo) { ConnectionInfo connectionInfo = (ConnectionInfo)command; connectionInfo.setTransportContext(getPeerCertificates()); } super.doConsume(command); }
X509Certificate[] peerCerts = ((SslTransport) originalTransport).getPeerCertificates(); localConnectionInfo.setTransportContext(peerCerts);