SSL.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private long | |
| private byte[] | |
| private long | |
| private X509Certificate[] | |
| private volatile X509Certificate[] | peerCertificateChain
Deprecated
as a consequence of
X509Certificate being deprecated.
|
| private byte[] | |
| private X509Certificate[] | |
| private String | |
| private int | |
| private byte[] | |
| private String | |
| private AbstractSessionContext | |
| private final NativeSsl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkPeerCertificatesPresent()
Throw SSLPeerUnverifiedException on null or empty peerCertificates array |
| private void | |
| public int | getApplicationBufferSize()
Implements javax. |
| public String | |
| public String | getCipherSuite()
Implements javax. |
| public long | getCreationTime()
Implements javax. |
| public byte[] | |
| public long | Returns: the session's last access time in milliseconds since the epochImplements javax. |
| public Certificate[] | getLocalCertificates()
Implements javax. |
| public Principal | getLocalPrincipal()
Implements javax. |
| public int | getPacketBufferSize()
Implements javax. |
| public X509Certificate[] | Returns: an array of X509 certificates (the peer's one first and then eventually that of the certification authority) or null if no certificate were used during the SSL connection.Overrides default javax.
Deprecated
as a consequence of
Returns the certificate(s) of the peer in this SSL session
used in the handshaking phase of the connection.
X509Certificate being deprecated.
|
| public X509Certificate[] | getPeerCertificates()
Implements org. |
| public String | getPeerHost()
Implements javax. |
| public int | getPeerPort()
Implements javax. |
| public Principal | getPeerPrincipal()
Implements javax. |
| public byte[] | getPeerSignedCertificateTimestamp()
Implements org. |
| public String | getProtocol()
Implements javax. |
| public String | |
| public SSLSessionContext | getSessionContext()
Implements javax. |
| public List | getStatusResponses()
Implements org. |
| public Object | getValue(String
the name of the binding to find. name)Implements javax. |
| public String[] | getValueNames()
Implements javax. |
| public void | |
| public boolean | isValid()
Implements javax. |
| pack-priv void | onPeerCertificateAvailable(String peerHost, int peerPort)
Updates the cached peer certificate after the handshake has completed (or entered False Start). |
| pack-priv void | onPeerCertificatesReceived(String peerHost, int peerPort, X509Certificate[] peerCertificates)
Configures the peer information once it has been received by the handshake. |
| public 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 void | removeValue(String
the name of the object to remove visible
across different access control contexts name)Implements javax. |
| pack-priv void |
| applicationProtocol | back to summary |
|---|---|
| private String applicationProtocol | |
| creationTime | back to summary |
|---|---|
| private long creationTime | |
| id | back to summary |
|---|---|
| private byte[] id | |
| lastAccessedTime | back to summary |
|---|---|
| private long lastAccessedTime | |
| localCertificates | back to summary |
|---|---|
| private X509Certificate[] localCertificates | |
| peerCertificateChain | back to summary |
|---|---|
| private volatile X509Certificate[] peerCertificateChain
Deprecated as a consequence of | |
| peerCertificateOcspData | back to summary |
|---|---|
| private byte[] peerCertificateOcspData | |
| peerCertificates | back to summary |
|---|---|
| private X509Certificate[] peerCertificates | |
| peerHost | back to summary |
|---|---|
| private String peerHost | |
| peerPort | back to summary |
|---|---|
| private int peerPort | |
| peerTlsSctData | back to summary |
|---|---|
| private byte[] peerTlsSctData | |
| protocol | back to summary |
|---|---|
| private String protocol | |
| sessionContext | back to summary |
|---|---|
| private AbstractSessionContext sessionContext | |
| ssl | back to summary |
|---|---|
| private final NativeSsl ssl | |
| ActiveSession | back to summary |
|---|---|
| pack-priv ActiveSession(NativeSsl ssl, AbstractSessionContext sessionContext) | |
| checkPeerCertificatesPresent | back to summary |
|---|---|
| private void checkPeerCertificatesPresent() throws SSLPeerUnverifiedException Throw SSLPeerUnverifiedException on null or empty peerCertificates array | |
| configurePeer | back to summary |
|---|---|
| private void configurePeer(String peerHost, int peerPort, X509Certificate[] peerCertificates) | |
| getApplicationBufferSize | back to summary |
|---|---|
| public int getApplicationBufferSize() Implements javax. Doc from javax. Gets the current size of the largest application data that is expected when using this session.
| |
| getApplicationProtocol | back to summary |
|---|---|
| public String getApplicationProtocol() Implements org.
| |
| getCipherSuite | back to summary |
|---|---|
| public 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 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 byte[] getId() Implements javax. Doc from javax. Returns the identifier assigned to this Session.
| |
| getLastAccessedTime | back to summary |
|---|---|
| public long getLastAccessedTime() Implements javax. Returns the last time this SSL session was accessed. Accessing here is to mean that a new connection with the same SSL context data was established.
| |
| getLocalCertificates | back to summary |
|---|---|
| public 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 Principal getLocalPrincipal() Implements javax. Doc from javax. Returns the principal that was sent to the peer during handshaking. | |
| getPacketBufferSize | back to summary |
|---|---|
| public 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 X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException Overrides default javax. Deprecated as a consequence of Returns the certificate(s) of the peer in this SSL session
used in the handshaking phase of the connection.
Please notice hat this method is superseded by
| |
| getPeerCertificates | back to summary |
|---|---|
| public X509Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException Implements org. 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 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 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 Principal getPeerPrincipal() throws SSLPeerUnverifiedException Implements javax. Doc from javax. Returns the identity of the peer which was established as part of defining the session.
| |
| getPeerSignedCertificateTimestamp | back to summary |
|---|---|
| public byte[] getPeerSignedCertificateTimestamp() Implements org. Returns the signed certificate timestamp (SCT) received from the peer. Returns a copy of the internal array. | |
| 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. | |
| getRequestedServerName | back to summary |
|---|---|
| public String getRequestedServerName() Implements org.
| |
| getSessionContext | back to summary |
|---|---|
| public SSLSessionContext getSessionContext() Implements javax. 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 Implements org. Returns the OCSP stapled response. Returns a copy of the internal arrays. The method signature matches Java 9. | |
| getValue | back to summary |
|---|---|
| public Object getValue(String name) 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 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. | |
| invalidate | back to summary |
|---|---|
| public 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 boolean isValid() Implements javax. Doc from javax. Returns whether this session is valid and available for resuming or joining.
| |
| onPeerCertificateAvailable | back to summary |
|---|---|
| pack-priv void onPeerCertificateAvailable(String peerHost, int peerPort) throws CertificateException Updates the cached peer certificate after the handshake has completed (or entered False Start). | |
| onPeerCertificatesReceived | back to summary |
|---|---|
| pack-priv void onPeerCertificatesReceived(String peerHost, int peerPort, X509Certificate[] peerCertificates) Configures the peer information once it has been received by the handshake. | |
| putValue | back to summary |
|---|---|
| public 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 void removeValue(String name) 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. | |
| setLastAccessedTime | back to summary |
|---|---|
| pack-priv void setLastAccessedTime(long accessTimeMillis) | |