List of usage examples for javax.net.ssl SSLEngine getDelegatedTask
public abstract Runnable getDelegatedTask();
From source file:org.globus.gsi.gssapi.GlobusGSSContextImpl.java
private void runDelegatedTasks(SSLEngine engine) throws Exception { Runnable runnable;/*from w w w .j a v a 2 s . c om*/ while ((runnable = engine.getDelegatedTask()) != null) { logger.debug("\trunning delegated task..."); runnable.run(); } SSLEngineResult.HandshakeStatus hsStatus = engine.getHandshakeStatus(); if (hsStatus == SSLEngineResult.HandshakeStatus.NEED_TASK) { throw new Exception("handshake shouldn't need additional tasks"); } logger.debug("\tnew HandshakeStatus: " + hsStatus); }