FileDocCategorySizeDatePackage
SSLSessionContext.javaAPI DocAndroid 1.5 API3068Wed May 06 22:41:06 BST 2009javax.net.ssl

SSLSessionContext

public interface SSLSessionContext
A collection of {@code SSLSession}s.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.util.EnumerationgetIds()
Returns an iterable of all session identifiers in this session context.

return
an iterable of all session identifiers in this session context.
since
Android 1.0

public javax.net.ssl.SSLSessiongetSession(byte[] sessionId)
Returns the session for the specified session identifier.

param
sessionId the session identifier of the session to look up.
return
the session for the specified session identifier, or {@code null} if the specified session identifier does not refer to a session in this context.
since
Android 1.0

public intgetSessionCacheSize()
Returns the size of the session cache for this session context.

return
the size of the session cache for this session context, or {@code zero} if unlimited.
since
Android 1.0

public intgetSessionTimeout()
Returns the timeout for sessions in this session context. Sessions exceeding the timeout are invalidated.

return
the timeout in seconds, or {@code zero} if unlimited.
since
Android 1.0

public voidsetSessionCacheSize(int size)
Sets the size of the session cache for this session context.

param
size the size of the session cache, or {@code zero} for unlimited cache size.
throws
IllegalArgumentException if {@code size} is negative.
since
Android 1.0

public voidsetSessionTimeout(int seconds)
Sets the timeout for sessions in this context. Sessions exceeding the timeout are invalidated.

param
seconds the timeout in seconds, or {@code zero} if unlimited.
throws
IllegalArgumentException if {@code seconds} is negative.
since
Android 1.0