73 * 74 * @return an enumeration of all the Session id's 75 */ 76 public Enumeration<byte[]> getIds(); 77 78 /** 79 * Sets the timeout limit for <code>SSLSession</code> objects grouped 80 * under this <code>SSLSessionContext</code>. 81 * <p> 82 * If the timeout limit is set to 't' seconds, a session exceeds the 83 * timeout limit 't' seconds after its creation time. 84 * When the timeout limit is exceeded for a session, the 85 * <code>SSLSession</code> object is invalidated and future connections 86 * cannot resume or rejoin the session. 87 * A check for sessions exceeding the timeout is made immediately whenever 88 * the timeout limit is changed for this <code>SSLSessionContext</code>. 89 * 90 * @param seconds the new session timeout limit in seconds; zero means 91 * there is no limit. 92 * 93 * @exception IllegalArgumentException if the timeout specified is < 0. 94 * @see #getSessionTimeout 95 */ 96 public void setSessionTimeout(int seconds) 97 throws IllegalArgumentException; 98 99 /** 100 * Returns the timeout limit of <code>SSLSession</code> objects grouped 101 * under this <code>SSLSessionContext</code>. 102 * <p> 103 * If the timeout limit is set to 't' seconds, a session exceeds the 104 * timeout limit 't' seconds after its creation time. 105 * When the timeout limit is exceeded for a session, the 106 * <code>SSLSession</code> object is invalidated and future connections 107 * cannot resume or rejoin the session. 108 * A check for sessions exceeding the timeout limit is made immediately 109 * whenever the timeout limit is changed for this 110 * <code>SSLSessionContext</code>. 111 * 112 * @return the session timeout limit in seconds; zero means there is no 113 * limit. 114 * @see #setSessionTimeout 115 */ 116 public int getSessionTimeout(); 117 118 /** 119 * Sets the size of the cache used for storing 120 * <code>SSLSession</code> objects grouped under this 121 * <code>SSLSessionContext</code>. 122 * 123 * @param size the new session cache size limit; zero means there is no 124 * limit. 125 * @exception IllegalArgumentException if the specified size is < 0. 126 * @see #getSessionCacheSize 127 */ 128 public void setSessionCacheSize(int size) 129 throws IllegalArgumentException; 130 131 /** 132 * Returns the size of the cache used for storing 133 * <code>SSLSession</code> objects grouped under this 134 * <code>SSLSessionContext</code>. 135 * 136 * @return size of the session cache; zero means there is no size limit. 137 * @see #setSessionCacheSize 138 */ 139 public int getSessionCacheSize(); 140 141 } | 73 * 74 * @return an enumeration of all the Session id's 75 */ 76 public Enumeration<byte[]> getIds(); 77 78 /** 79 * Sets the timeout limit for <code>SSLSession</code> objects grouped 80 * under this <code>SSLSessionContext</code>. 81 * <p> 82 * If the timeout limit is set to 't' seconds, a session exceeds the 83 * timeout limit 't' seconds after its creation time. 84 * When the timeout limit is exceeded for a session, the 85 * <code>SSLSession</code> object is invalidated and future connections 86 * cannot resume or rejoin the session. 87 * A check for sessions exceeding the timeout is made immediately whenever 88 * the timeout limit is changed for this <code>SSLSessionContext</code>. 89 * 90 * @param seconds the new session timeout limit in seconds; zero means 91 * there is no limit. 92 * 93 * @exception IllegalArgumentException if the timeout specified is {@code < 0}. 94 * @see #getSessionTimeout 95 */ 96 public void setSessionTimeout(int seconds) 97 throws IllegalArgumentException; 98 99 /** 100 * Returns the timeout limit of <code>SSLSession</code> objects grouped 101 * under this <code>SSLSessionContext</code>. 102 * <p> 103 * If the timeout limit is set to 't' seconds, a session exceeds the 104 * timeout limit 't' seconds after its creation time. 105 * When the timeout limit is exceeded for a session, the 106 * <code>SSLSession</code> object is invalidated and future connections 107 * cannot resume or rejoin the session. 108 * A check for sessions exceeding the timeout limit is made immediately 109 * whenever the timeout limit is changed for this 110 * <code>SSLSessionContext</code>. 111 * 112 * @return the session timeout limit in seconds; zero means there is no 113 * limit. 114 * @see #setSessionTimeout 115 */ 116 public int getSessionTimeout(); 117 118 /** 119 * Sets the size of the cache used for storing 120 * <code>SSLSession</code> objects grouped under this 121 * <code>SSLSessionContext</code>. 122 * 123 * @param size the new session cache size limit; zero means there is no 124 * limit. 125 * @exception IllegalArgumentException if the specified size is {@code < 0}. 126 * @see #getSessionCacheSize 127 */ 128 public void setSessionCacheSize(int size) 129 throws IllegalArgumentException; 130 131 /** 132 * Returns the size of the cache used for storing 133 * <code>SSLSession</code> objects grouped under this 134 * <code>SSLSessionContext</code>. 135 * 136 * @return size of the session cache; zero means there is no size limit. 137 * @see #setSessionCacheSize 138 */ 139 public int getSessionCacheSize(); 140 141 } |