/** * Constructor for the <code>NegotiationCertificate</code> object. * This creates an object used to provide certificate details and * a means to challenge for certificate details for the connected * client if required. * * @param negotiation the negotiation associated with this * @param socket the underlying TCP connection to the client */ public NegotiationState(Negotiation negotiation, Socket socket) { this.delegate = new Delegate(socket); this.future = new FutureTask<Certificate>(delegate, this); this.challenge = new Challenge(socket); this.negotiation = negotiation; this.socket = socket; }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable task) { try { if(!isChainPresent()) { resume(task); } else { future.run(); } } catch(Exception cause) { trace.trace(ERROR, cause); } return future; }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable task) { try { if(!isChainPresent()) { resume(task); } else { future.run(); } } catch(Exception cause) { trace.trace(ERROR, cause); } return future; }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. * * @param completion task to be run on successful challenge */ public Future<Certificate> challenge(Runnable task) { try { if(!isChainPresent()) { resume(task); } else { future.run(); } } catch(Exception cause) { trace.trace(ERROR, cause); } return future; }
/** * Constructor for the <code>NegotiationCertificate</code> object. * This creates an object used to provide certificate details and * a means to challenge for certificate details for the connected * client if required. * * @param negotiation the negotiation associated with this * @param socket the underlying TCP connection to the client */ public NegotiationState(Negotiation negotiation, Socket socket) { this.delegate = new Delegate(socket); this.future = new FutureTask<Certificate>(delegate, this); this.challenge = new Challenge(socket); this.negotiation = negotiation; this.socket = socket; }
/** * Constructor for the <code>NegotiationCertificate</code> object. * This creates an object used to provide certificate details and * a means to challenge for certificate details for the connected * client if required. * * @param negotiation the negotiation associated with this * @param socket the underlying TCP connection to the client */ public NegotiationState(Negotiation negotiation, Socket socket) { this.delegate = new Delegate(socket); this.future = new FutureTask<Certificate>(delegate, this); this.challenge = new Challenge(socket); this.negotiation = negotiation; this.socket = socket; }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. */ public Future<Certificate> challenge() { return challenge(null); }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. */ public Future<Certificate> challenge() { return challenge(null); }
/** * This method will challenge the client for their certificate. * It does so by performing an SSL renegotiation. Successful * completion of the SSL renegotiation results in the client * providing their certificate, and execution of the task. */ public Future<Certificate> challenge() { return challenge(null); }