context.setOption(GSSConstants.GSS_MODE,
gssMode);
}
} catch (GSSException e) {
throw new ChainedIOException("Failed to init GSI context", e);
}
GssSocketFactory factory = GssSocketFactory.getDefault();
socket = factory.createSocket(url.getHost(), this.port, context);