SSLEngineResult


SSLEngineResult javax.net.ssl

Java 5.0

An object of this type is returned by the wrap( ) and unwrap( ) methods of an SSLEngine . Use the methods of this object to determine how much data was consumed and produced and to obtain the Status of the operation and the HandshakeStatus of the connection. These two nested enumerated types return important values. Correct operation of an SSLEngine requires that your code respond correctly to the Status and HandshakeStatus results.

 public class  SSLEngineResult  {  // Public Constructors  public  SSLEngineResult  (SSLEngineResult.Status  status  , SSLEngineResult.         HandshakeStatus  handshakeStatus  ,          int  bytesConsumed  , int  bytesProduced  );  // Nested Types  public enum  HandshakeStatus  ;       public enum  Status  ;  // Public Instance Methods  public final int  bytesConsumed  ( );        public final int  bytesProduced  ( );        public final SSLEngineResult.HandshakeStatus  getHandshakeStatus  ( );        public final SSLEngineResult.Status  getStatus  ( );  // Public Methods Overriding Object  public String  toString  ( );   } 

Returned By

SSLEngine.{unwrap( ) , wrap( )}



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net