|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.net.ssl.SSLEngineResult
public class SSLEngineResult
SSLEngine 入出力呼び出しの結果として生成された状態のカプセル化です。
SSLEngine は、2 つのピア間で安全な通信セッションを確立する手段を提供します。SSLEngine オペレーションは、通常、入力バッファーのバイトを使用し、出力バッファーへバイトを書き出します。このクラスは、オペレーションの結果を示す値を提供します。 この値は、現行のハンドシェークを完了するために必要なオペレーションの指定を含めて、SSLEngine の状態を説明します。このクラスは、最後に、このオペレーションの結果として、使用されたバイト数と書き出されたバイト数を報告します。
SSLEngine,
SSLEngine.wrap(ByteBuffer, ByteBuffer),
SSLEngine.unwrap(ByteBuffer, ByteBuffer)| 入れ子のクラスの概要 | |
|---|---|
static class |
SSLEngineResult.HandshakeStatus
この SSLEngine の現在のハンドシェーク状態を説明する SSLEngineResult の列挙です。 |
static class |
SSLEngineResult.Status
SSLEngine オペレーションの全体的な結果を説明する SSLEngineResult の列挙です。 |
| コンストラクタの概要 | |
|---|---|
SSLEngineResult(SSLEngineResult.Status status,
SSLEngineResult.HandshakeStatus handshakeStatus,
int bytesConsumed,
int bytesProduced)
このクラスの新しいインスタンスを初期化します。 |
|
| メソッドの概要 | |
|---|---|
int |
bytesConsumed()
入力バッファーから使用されたバイト数を返します。 |
int |
bytesProduced()
出力バッファーへ書き込まれたバイト数を返します。 |
SSLEngineResult.HandshakeStatus |
getHandshakeStatus()
この SSLEngine オペレーションのハンドシェーク状態を取得します。 |
SSLEngineResult.Status |
getStatus()
この SSLEngine オペレーションの戻り値を取得します。 |
String |
toString()
このオブジェクトの文字列表現を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public SSLEngineResult(SSLEngineResult.Status status,
SSLEngineResult.HandshakeStatus handshakeStatus,
int bytesConsumed,
int bytesProduced)
status - このオペレーションの戻り値。handshakeStatus - 現在のハンドシェーク状態。bytesConsumed - ソースの ByteBuffer から使用されたバイト数bytesProduced - 宛先 ByteBuffer に書き出されたバイト数
IllegalArgumentException - status か handshakeStatus のいずれかの引数が null の場合、または bytesConsumed か bytesProduced が負の値の場合| メソッドの詳細 |
|---|
public final SSLEngineResult.Status getStatus()
SSLEngine オペレーションの戻り値を取得します。
public final SSLEngineResult.HandshakeStatus getHandshakeStatus()
SSLEngine オペレーションのハンドシェーク状態を取得します。
public final int bytesConsumed()
public final int bytesProduced()
public String toString()
Object 内の toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。