SSLSessionBindingEvent
Stay organized with collections
Save and categorize content based on your preferences.
This event is propagated to a SSLSessionBindingListener.
When a listener object is bound or unbound to an SSLSession by
SSLSession.putValue(String, Object)
or SSLSession.removeValue(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.
Public Constructor Summary
Public Method Summary
String
|
getName()
Returns the name to which the object is being bound, or the name
from which the object is being unbound.
|
SSLSession
|
getSession()
Returns the SSLSession into which the listener is being bound or
from which the listener is being unbound.
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Constructors
public
SSLSessionBindingEvent
(SSLSession session, String name)
Constructs a new SSLSessionBindingEvent.
Parameters
session |
the SSLSession acting as the source of the event |
name |
the name to which the object is being bound or unbound |
Public Methods
public
String
getName
()
Returns the name to which the object is being bound, or the name
from which the object is being unbound.
Returns
- the name to which the object is being bound or unbound
public
SSLSession
getSession
()
Returns the SSLSession into which the listener is being bound or
from which the listener is being unbound.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eSSLSessionBindingEvent\u003c/code\u003e signals when an \u003ccode\u003eSSLSessionBindingListener\u003c/code\u003e is bound or unbound to an \u003ccode\u003eSSLSession\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis event is triggered by \u003ccode\u003eSSLSession.putValue()\u003c/code\u003e and \u003ccode\u003eSSLSession.removeValue()\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eThe event provides the name of the binding and the associated \u003ccode\u003eSSLSession\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt extends \u003ccode\u003eEventObject\u003c/code\u003e and includes methods to retrieve the binding name and the session.\u003c/p\u003e\n"]]],[],null,["public class **SSLSessionBindingEvent** extends [EventObject](../../../../reference/java/util/EventObject.html) \nThis event is propagated to a SSLSessionBindingListener.\nWhen a listener object is bound or unbound to an SSLSession by\n[SSLSession.putValue(String, Object)](../../../../reference/javax/net/ssl/SSLSession.html#putValue(java.lang.String,%20java.lang.Object))\nor [SSLSession.removeValue(String)](../../../../reference/javax/net/ssl/SSLSession.html#removeValue(java.lang.String)), objects which\nimplement the SSLSessionBindingListener will be receive an\nevent of this type. The event's `name` field is the\nkey in which the listener is being bound or unbound. \n\nSee Also\n\n- [SSLSession](../../../../reference/javax/net/ssl/SSLSession.html)\n- [SSLSessionBindingListener](../../../../reference/javax/net/ssl/SSLSessionBindingListener.html) \n\nInherited Field Summary \nFrom class [java.util.EventObject](../../../../reference/java/util/EventObject.html) \n\n|-----------------------------------------------------------------|-------------------------------------------------------------------|---------------------------------------------------|\n| protected [Object](../../../../reference/java/lang/Object.html) | [source](../../../../reference/java/util/EventObject.html#source) | The object on which the Event initially occurred. |\n\nPublic Constructor Summary\n\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [SSLSessionBindingEvent](../../../../reference/javax/net/ssl/SSLSessionBindingEvent.html#SSLSessionBindingEvent(javax.net.ssl.SSLSession,%20java.lang.String))([SSLSession](../../../../reference/javax/net/ssl/SSLSession.html) session, [String](../../../../reference/java/lang/String.html) name) Constructs a new SSLSessionBindingEvent. |\n\nPublic Method Summary\n\n|-------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](../../../../reference/java/lang/String.html) | [getName](../../../../reference/javax/net/ssl/SSLSessionBindingEvent.html#getName())() Returns the name to which the object is being bound, or the name from which the object is being unbound. |\n| [SSLSession](../../../../reference/javax/net/ssl/SSLSession.html) | [getSession](../../../../reference/javax/net/ssl/SSLSessionBindingEvent.html#getSession())() Returns the SSLSession into which the listener is being bound or from which the listener is being unbound. |\n\nInherited Method Summary \nFrom class [java.util.EventObject](../../../../reference/java/util/EventObject.html) \n\n|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../../reference/java/lang/Object.html) | [getSource](../../../../reference/java/util/EventObject.html#getSource())() The object on which the Event initially occurred. |\n| [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/util/EventObject.html#toString())() Returns a String representation of this EventObject. |\n\nFrom class [java.lang.Object](../../../../reference/java/lang/Object.html) \n\n|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../../reference/java/lang/Object.html) | [clone](../../../../reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |\n| boolean | [equals](../../../../reference/java/lang/Object.html#equals(java.lang.Object))([Object](../../../../reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |\n| void | [finalize](../../../../reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |\n| final [Class](../../../../reference/java/lang/Class.html)\\\u003c?\\\u003e | [getClass](../../../../reference/java/lang/Object.html#getClass())() Returns the unique instance of [Class](../../../../reference/java/lang/Class.html) that represents this object's class. |\n| int | [hashCode](../../../../reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |\n| final void | [notify](../../../../reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| final void | [notifyAll](../../../../reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |\n\nPublic Constructors \n\npublic\n**SSLSessionBindingEvent**\n([SSLSession](../../../../reference/javax/net/ssl/SSLSession.html) session, [String](../../../../reference/java/lang/String.html) name) \nConstructs a new SSLSessionBindingEvent. \n\nParameters\n\n| session | the SSLSession acting as the source of the event |\n| name | the name to which the object is being bound or unbound |\n|---------|--------------------------------------------------------|\n\nThrows\n\n| [IllegalArgumentException](../../../../reference/java/lang/IllegalArgumentException.html) | if `session` is null. |\n|-------------------------------------------------------------------------------------------|-----------------------|\n\nPublic Methods \n\npublic [String](../../../../reference/java/lang/String.html)\n**getName**\n() \nReturns the name to which the object is being bound, or the name\nfrom which the object is being unbound. \n\nReturns\n\n- the name to which the object is being bound or unbound \n\npublic [SSLSession](../../../../reference/javax/net/ssl/SSLSession.html)\n**getSession**\n() \nReturns the SSLSession into which the listener is being bound or\nfrom which the listener is being unbound. \n\nReturns\n\n- the `SSLSession`"]]