OpenSslSession except the methods defined by ExtendedSSLSession
itself.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private final OpenSslSession |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public final int | getApplicationBufferSize()
Implements javax. |
| public final String | getCipherSuite()
Implements javax. |
| public final long | getCreationTime()
Implements javax. |
| public final byte[] | |
| public final long | getLastAccessedTime()
Implements javax. |
| public final Certificate[] | getLocalCertificates()
Implements javax. |
| public final Principal | getLocalPrincipal()
Implements javax. |
| public final String[] | getLocalSupportedSignatureAlgorithms()
Implements abstract javax. |
| public final int | getPacketBufferSize()
Implements javax. |
| public final X509Certificate[] | getPeerCertificateChain()
Overrides default javax.
Deprecated
as a consequence of
Returns the identity of the peer which was identified as part
of defining the session.
X509Certificate being deprecated.
|
| public final Certificate[] | getPeerCertificates()
Implements javax. |
| public final String | getPeerHost()
Implements javax. |
| public final int | getPeerPort()
Implements javax. |
| public final Principal | getPeerPrincipal()
Implements javax. |
| public String[] | getPeerSupportedSignatureAlgorithms()
Implements abstract javax. |
| public String | getProtocol()
Implements javax. |
| public abstract List | getRequestedServerNames()
Overrides javax. List containing all SNIServerNames
of the requested Server Name Indication (SNI) extension.
|
| public final OpenSslSessionContext | getSessionContext()
Implements io. |
| public List | getStatusResponses()
Overrides javax. List containing DER-encoded OCSP responses
(using the ASN.1 type OCSPResponse defined in RFC 6960) for
the client to verify status of the server's certificate during
handshaking.
|
| public final Object | getValue(String
the name of the binding to find. s)Implements javax. |
| public final String[] | getValueNames()
Implements javax. |
| public void | handshakeFinished(byte[] id, String cipher, String protocol, byte[] peerCertificate, byte[][] peerCertificateChain, long creationTime, long timeout)
Implements io. |
| public int | |
| public final void | |
| public final boolean | isValid()
Implements javax. |
| public Map | keyValueStorage()
Implements io. Map that is used by the following methods:
|
| public void | prepareHandshake()
Implements io. javax..
|
| public final void | putValue(String
the name to which the data object will be bound.
This may not be null. name, Object the data object to be bound. This may not be null. value)Implements javax. value object into the
session's application layer data
with the given name.
|
| public final void | removeValue(String
the name of the object to remove visible
across different access control contexts s)Implements javax. |
| public OpenSslSessionId | sessionId()
Implements io. OpenSslSessionId that can be used to identify this session.
|
| public void | setLastAccessedTime(long
the time time)Implements io. getLastAccessedTime().
|
| public final void | setLocalCertificate(Certificate[] localCertificate)
Implements io. |
| public void | setSessionDetails(long
the time at which the session was created. creationTime, long the time at which the session was last accessed via the session infrastructure (cache). lastAccessedTime, OpenSslSessionId the id, Map<String, Object> OpenSslSessionIdthe key value store. See keyValueStorage)keyValueStorage().Implements io. |
| public String | |
| public final void | tryExpandApplicationBufferSize(int
The packet size which exceeds the current packetLengthDataOnly)getApplicationBufferSize().Implements io. getApplicationBufferSize() if necessary.
|
| LOCAL_SUPPORTED_SIGNATURE_ALGORITHMS | back to summary |
|---|---|
| private static final String[] LOCAL_SUPPORTED_SIGNATURE_ALGORITHMS | |
| wrapped | back to summary |
|---|---|
| private final OpenSslSession wrapped | |
| ExtendedOpenSslSession | back to summary |
|---|---|
| pack-priv ExtendedOpenSslSession(OpenSslSession wrapped) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getApplicationBufferSize | back to summary |
|---|---|
| public final int getApplicationBufferSize() Implements javax. Doc from javax. Gets the current size of the largest application data that is expected when using this session.
| |
| getCipherSuite | back to summary |
|---|---|
| public final String getCipherSuite() Implements javax. Doc from javax. Returns the name of the SSL cipher suite which is used for all connections in the session. This defines the level of protection provided to the data sent on the connection, including the kind of encryption used and most aspects of how authentication is done. | |
| getCreationTime | back to summary |
|---|---|
| public final long getCreationTime() Implements javax. Doc from javax. Returns the time at which this Session representation was created, in milliseconds since midnight, January 1, 1970 UTC.
| |
| getId | back to summary |
|---|---|
| public final byte[] getId() Implements javax. Doc from javax. Returns the identifier assigned to this Session.
| |
| getLastAccessedTime | back to summary |
|---|---|
| public final long getLastAccessedTime() Implements javax. Doc from javax. Returns the last time this Session representation was accessed by the session level infrastructure, in milliseconds since midnight, January 1, 1970 UTC. Access indicates a new connection being established using session data. Application level operations, such as getting or setting a value associated with the session, are not reflected in this access time. This information is particularly useful in session management policies. For example, a session manager thread could leave all sessions in a given context which haven't been used in a long time; or, the sessions might be sorted according to age to optimize some task.
| |
| getLocalCertificates | back to summary |
|---|---|
| public final Certificate[] getLocalCertificates() Implements javax. Doc from javax. Returns the certificate(s) that were sent to the peer during handshaking. Note This method is useful only when using certificate-based cipher suites. When multiple certificates are available for use in a handshake, the implementation chooses what it considers the "best" certificate chain available, and transmits that to the other side. This method allows the caller to know which certificate chain was actually used.
| |
| getLocalPrincipal | back to summary |
|---|---|
| public final Principal getLocalPrincipal() Implements javax. Doc from javax. Returns the principal that was sent to the peer during handshaking. | |
| getLocalSupportedSignatureAlgorithms | back to summary |
|---|---|
| public final String[] getLocalSupportedSignatureAlgorithms() Implements abstract javax. Doc from javax. Obtains an array of supported signature algorithms that the local side is willing to use. Note this method is used to indicate to the peer which signature algorithms may be used for digital signatures in TLS/DTLS 1.2. It is not meaningful for TLS/DTLS versions prior to 1.2. The signature algorithm name must be a standard Java Security name (such as "SHA1withRSA", "SHA256withECDSA", and so on). See the Java Security Standard Algorithm Names document for information about standard algorithm names. Note the local supported signature algorithms should conform to
the algorithm constraints specified by
| |
| getPacketBufferSize | back to summary |
|---|---|
| public final int getPacketBufferSize() Implements javax. Doc from javax. Gets the current size of the largest SSL/TLS/DTLS packet that is expected when using this session.
An
| |
| getPeerCertificateChain | back to summary |
|---|---|
| public final X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException Overrides default javax. Doc from javax. Deprecated as a consequence of Returns the identity of the peer which was identified as part of defining the session. Note This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an SSLPeerUnverifiedException. Note The returned value may not be a valid certificate chain and should not be relied on for trust decisions. Note this method exists for compatibility with previous
releases. New applications should use
| |
| getPeerCertificates | back to summary |
|---|---|
| public final Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException Implements javax. Doc from javax. Returns the identity of the peer which was established as part of defining the session. Note This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an SSLPeerUnverifiedException. Note The returned value may not be a valid certificate chain and should not be relied on for trust decisions.
| |
| getPeerHost | back to summary |
|---|---|
| public final String getPeerHost() Implements javax. Doc from javax. Returns the host name of the peer in this session. For the server, this is the client's host; and for the client, it is the server's host. The name may not be a fully qualified host name or even a host name at all as it may represent a string encoding of the peer's network address. If such a name is desired, it might be resolved through a name service based on the value returned by this method.
This value is not authenticated and should not be relied upon.
It is mainly used as a hint for | |
| getPeerPort | back to summary |
|---|---|
| public final int getPeerPort() Implements javax. Doc from javax. Returns the port number of the peer in this session. For the server, this is the client's port number; and for the client, it is the server's port number.
This value is not authenticated and should not be relied upon.
It is mainly used as a hint for
| |
| getPeerPrincipal | back to summary |
|---|---|
| public final Principal getPeerPrincipal() throws SSLPeerUnverifiedException Implements javax. Doc from javax. Returns the identity of the peer which was established as part of defining the session.
| |
| getPeerSupportedSignatureAlgorithms | back to summary |
|---|---|
| public String[] getPeerSupportedSignatureAlgorithms() Implements abstract javax. Doc from javax. Obtains an array of supported signature algorithms that the peer is able to use. Note this method is used to indicate to the local side which signature algorithms may be used for digital signatures in TLS/DTLS 1.2. It is not meaningful for TLS/DTLS versions prior to 1.2. The signature algorithm name must be a standard Java Security name (such as "SHA1withRSA", "SHA256withECDSA", and so on). See the Java Security Standard Algorithm Names document for information about standard algorithm names. | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Implements javax. Doc from javax. Returns the standard name of the protocol used for all connections in the session. This defines the protocol used in the connection. | |
| getRequestedServerNames | back to summary |
|---|---|
| public abstract List Overrides javax. Doc from javax. Obtains a
In server mode, unless the return
In client mode, unless the return
| |
| getSessionContext | back to summary |
|---|---|
| public final OpenSslSessionContext getSessionContext() Implements io. Doc from javax. Returns the context in which this session is bound. This context may be unavailable in some environments, in which case this method returns null.
If the context is available and there is a
security manager installed, the caller may require
permission to access it or a security exception may be thrown.
In a Java environment, the security manager's
| |
| getStatusResponses | back to summary |
|---|---|
| public List Overrides javax. Doc from javax. Returns a
This method only applies to certificate-based server
authentication. An
| |
| getValue | back to summary |
|---|---|
| public final Object getValue(String s) Implements javax. Doc from javax. Returns the object bound to the given name in the session's application layer data. Returns null if there is no such binding. For security reasons, the same named values may not be visible across different access control contexts. | |
| getValueNames | back to summary |
|---|---|
| public final String[] getValueNames() Implements javax. Doc from javax. Returns an array of the names of all the application layer data objects bound into the Session. For security reasons, the same named values may not be visible across different access control contexts. | |
| handshakeFinished | back to summary |
|---|---|
| public void handshakeFinished(byte[] id, String cipher, String protocol, byte[] peerCertificate, byte[][] peerCertificateChain, long creationTime, long timeout) throws SSLException Implements io. Doc from io. Called once the handshake has completed.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invalidate | back to summary |
|---|---|
| public final void invalidate() Implements javax. Doc from javax. Invalidates the session. Future connections will not be able to resume or join this session. However, any existing connection using this session can continue to use the session until the connection is closed.
| |
| isValid | back to summary |
|---|---|
| public final boolean isValid() Implements javax. Doc from javax. Returns whether this session is valid and available for resuming or joining.
| |
| keyValueStorage | back to summary |
|---|---|
| public Map Implements io. Doc from io. Return the underlying Map must be thread-safe!
| |
| prepareHandshake | back to summary |
|---|---|
| public void prepareHandshake() Implements io. Doc from io. Called on a handshake session before being exposed to a
| |
| putValue | back to summary |
|---|---|
| public final void putValue(String name, Object value) Implements javax. Doc from javax. Binds the specified
Any existing binding using the same For security reasons, the same named values may not be visible across different access control contexts. | |
| removeValue | back to summary |
|---|---|
| public final void removeValue(String s) Implements javax. Doc from javax. Removes the object bound to the given name in the session's
application layer data. Does nothing if there is no object
bound to the given name. If the bound existing object
implements the For security reasons, the same named values may not be visible across different access control contexts. | |
| sessionId | back to summary |
|---|---|
| public OpenSslSessionId sessionId() Implements io. Doc from io. Return the
| |
| setLastAccessedTime | back to summary |
|---|---|
| public void setLastAccessedTime(long time) Implements io. Doc from io. Set the last access time which will be returned by
| |
| setLocalCertificate | back to summary |
|---|---|
| public final void setLocalCertificate(Certificate[] localCertificate) Implements io. Doc from io. Set the local certificate chain that is used. It is not expected that this array will be changed at all and so its ok to not copy the array.
| |
| setSessionDetails | back to summary |
|---|---|
| public void setSessionDetails(long creationTime, long lastAccessedTime, OpenSslSessionId id, Map<String, Object> keyValueStorage) Implements io. Doc from io. Set the details for the session which might come from a cache.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| tryExpandApplicationBufferSize | back to summary |
|---|---|
| public final void tryExpandApplicationBufferSize(int packetLengthDataOnly) Implements io. Doc from io. Expand (or increase) the value returned by This is only called in a synchronized block, so no need to use atomic operations.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final SSLSessionBindingListener |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | valueBound(SSLSessionBindingEvent
the event identifying the SSLSession into
which the listener is being bound. event)Implements javax. |
| public void | valueUnbound(SSLSessionBindingEvent
the event identifying the SSLSession from
which the listener is being unbound. event)Implements javax. |
| delegate | back to summary |
|---|---|
| pack-priv final SSLSessionBindingListener delegate | |
| SSLSessionBindingListenerDecorator | back to summary |
|---|---|
| pack-priv SSLSessionBindingListenerDecorator(SSLSessionBindingListener delegate) | |
| valueBound | back to summary |
|---|---|
| public void valueBound(SSLSessionBindingEvent event) Implements javax. Doc from javax. This is called to notify the listener that it is being bound into an SSLSession.
| |
| valueUnbound | back to summary |
|---|---|
| public void valueUnbound(SSLSessionBindingEvent event) Implements javax. Doc from javax. This is called to notify the listener that it is being unbound from a SSLSession.
| |