public class SSLSessionBindingEvent extends EventObject
SSLSession.putValue(String, Object)或SSLSession.removeValue(String)时,实现SSLSessionBindingListener的对象将会收到此类型的事件。
事件的name字段是侦听器被绑定或解除绑定的关键。
SSLSession , SSLSessionBindingListener , Serialized Form
source| Constructor and Description |
|---|
SSLSessionBindingEvent(SSLSession session, String name)
构造一个新的SSLSessionBindingEvent。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
返回对象被绑定到的名称,或者对象被绑定的名称。
|
SSLSession |
getSession()
返回侦听器被绑定到的SSLSession或侦听器被绑定到的SSLSession。
|
getSource, toStringpublic SSLSessionBindingEvent(SSLSession session, String name)
session - SSLSession作为事件的来源
name - 对象绑定或
name的名称
IllegalArgumentException - 如果
session为空。
public String getName()
public SSLSession getSession()
SSLSession
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.