Most visited

Recently visited

Added in API level 1

SSLSessionBindingEvent

public class SSLSessionBindingEvent
extends EventObject

java.lang.Object
    java.util.EventObject
      javax.net.ssl.SSLSessionBindingEvent


此事件传播到SSLSessionBindingListener。 当侦听器对象被绑定或解除绑定到SSLSession putValue(String, Object)removeValue(String) ,实现SSLSessionBindingListener的对象将收到此类型的事件。 该事件的name字段是侦听器绑定或解除绑定的关键。

也可以看看:

摘要(Summary)

Inherited fields

From class java.util.EventObject

Public constructors

SSLSessionBindingEvent(SSLSession session, String name)

构造一个新的SSLSessionBindingEvent。

公共方法(Public methods)

String getName()

返回该对象所绑定的名称或该对象被解除绑定的名称。

SSLSession getSession()

返回侦听器绑定到的或侦听器未绑定的SSLSession。

继承方法(Inherited methods)

From class java.util.EventObject
From class java.lang.Object

Public constructors

SSLSessionBindingEvent

Added in API level 1
SSLSessionBindingEvent (SSLSession session, 
                String name)

构造一个新的SSLSessionBindingEvent。

参数(Parameters)
session SSLSession: the SSLSession acting as the source of the event
name String: the name to which the object is being bound or unbound
抛出异常(Throws)
IllegalArgumentException if session is null.

公共方法(Public methods)

getName

Added in API level 1
String getName ()

返回该对象所绑定的名称或该对象被解除绑定的名称。

返回(Returns)
String the name to which the object is being bound or unbound

getSession

Added in API level 1
SSLSession getSession ()

返回侦听器绑定到的或侦听器未绑定的SSLSession。

返回(Returns)
SSLSession the SSLSession

Hooray!