com.sun.grizzly.ssl
Class SSLUtils

java.lang.Object
  extended by com.sun.grizzly.ssl.SSLUtils

public class SSLUtils
extends Object

Utility class, which implements the set of useful SSL related operations.

Author:
Alexey Stashok

Constructor Summary
SSLUtils()
           
 
Method Summary
static void executeDelegatedTask(SSLEngine sslEngine)
          Complete hanshakes operations.
static boolean isHandshaking(SSLEngine sslEngine)
           
static SSLEngineResult unwrap(SSLEngine sslEngine, Buffer securedInBuffer, Buffer plainBuffer)
           
static SSLEngineResult wrap(SSLEngine sslEngine, Buffer plainBuffer, Buffer securedOutBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLUtils

public SSLUtils()
Method Detail

unwrap

public static SSLEngineResult unwrap(SSLEngine sslEngine,
                                     Buffer securedInBuffer,
                                     Buffer plainBuffer)
                              throws IOException
Throws:
IOException

wrap

public static SSLEngineResult wrap(SSLEngine sslEngine,
                                   Buffer plainBuffer,
                                   Buffer securedOutBuffer)
                            throws IOException
Throws:
IOException

executeDelegatedTask

public static void executeDelegatedTask(SSLEngine sslEngine)
Complete hanshakes operations.

Parameters:
sslEngine - The SSLEngine used to manage the SSL operations.

isHandshaking

public static boolean isHandshaking(SSLEngine sslEngine)


Copyright © 2009 SUN Microsystems. All Rights Reserved.