Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Fields](https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#inhfields) \| [Ctors](https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#pubctors) \| [Methods](https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#inhmethods)

# SSLSessionBindingEvent


`
public


class
SSLSessionBindingEvent
`


`


`

`

extends https://developer.android.com/reference/java/util/EventObject


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [java.util.EventObject](https://developer.android.com/reference/java/util/EventObject) ||
|   | ↳ | javax.net.ssl.SSLSessionBindingEvent |

<br />

*** ** * ** ***

This event is propagated to a SSLSessionBindingListener.
When a listener object is bound or unbound to an SSLSession by
`https://developer.android.com/reference/javax/net/ssl/SSLSession#putValue(java.lang.String,%20java.lang.Object)`
or `https://developer.android.com/reference/javax/net/ssl/SSLSession#removeValue(java.lang.String)`, objects which
implement the SSLSessionBindingListener will be receive an
event of this type. The event's `name` field is the
key in which the listener is being bound or unbound.
**See also:**

- `https://developer.android.com/reference/javax/net/ssl/SSLSession`
- `https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingListener`

## Summary

| ### Inherited fields |
|---|
| From class `https://developer.android.com/reference/java/util/EventObject` |---|---| | ` protected https://developer.android.com/reference/java/lang/Object` | `https://developer.android.com/reference/java/util/EventObject#source` The object on which the Event initially occurred. | |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#SSLSessionBindingEvent(javax.net.ssl.SSLSession,%20java.lang.String)(https://developer.android.com/reference/javax/net/ssl/SSLSession session, https://developer.android.com/reference/java/lang/String name) ` Constructs a new SSLSessionBindingEvent. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#getName()() ` Returns the name to which the object is being bound, or the name from which the object is being unbound. |
| ` https://developer.android.com/reference/javax/net/ssl/SSLSession` | ` https://developer.android.com/reference/javax/net/ssl/SSLSessionBindingEvent#getSession()() ` Returns the SSLSession into which the listener is being bound or from which the listener is being unbound. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/util/EventObject ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/util/EventObject#getSource()() ` The object on which the Event initially occurred. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/util/EventObject#toString()() ` Returns a String representation of this EventObject. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### SSLSessionBindingEvent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public SSLSessionBindingEvent (SSLSession session, 
                String name)
```

Constructs a new SSLSessionBindingEvent.

<br />

| Parameters ||
|---|---|
| `session` | `SSLSession`: the SSLSession acting as the source of the event <br /> |
| `name` | `String`: the name to which the object is being bound or unbound <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if `session` is null. |

## Public methods

### getName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getName ()
```

Returns the name to which the object is being bound, or the name
from which the object is being unbound.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the name to which the object is being bound or unbound <br /> |

### getSession

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public SSLSession getSession ()
```

Returns the SSLSession into which the listener is being bound or
from which the listener is being unbound.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/javax/net/ssl/SSLSession` | the `SSLSession` <br /> |