SSLSession interface to support additional
session attributes.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: a byte array of sizelength that contains the EKM
materialthe label bytes used in the EKM calculation.
label, byte[] label will be converted to a byte[]
before the operation begins.the context bytes used in the EKM calculation, or null context, int the number of bytes of EKM material needed length)Generates Exported Keying Material (EKM) calculated according to the algorithms defined in RFCs 5705/8446. |
| public SecretKey | Returns: aSecretKey that contains length bytes of the
EKM materialthe algorithm of the resultant keyAlg, String SecretKey object.
See the SecretKey Algorithms section in the
Java Security Standard Algorithm Names Specification
for information about standard secret key algorithm
names.the label bytes used in the EKM calculation.
label, byte[] label will be converted to a byte[]
before the operation begins.the context bytes used in the EKM calculation, or null context, int the number of bytes of EKM material needed length)Generates Exported Keying Material (EKM) calculated according to the algorithms defined in RFCs 5705/8446. |
| public abstract String[] | Returns: An array of supported signature algorithms, in descending order of preference. The return value is an empty array if no signature algorithm is supported.Obtains an array of supported signature algorithms that the local side is willing to use. |
| public abstract String[] | Returns: An array of supported signature algorithms, in descending order of preference. The return value is an empty array if the peer has not sent the supported signature algorithms.Obtains an array of supported signature algorithms that the peer is able to use. |
| public List | Returns: a non-null immutable list ofSNIServerNames of the
requested server name indications. The returned list may be
empty if no server name indications were requested.Obtains a |
| public List | Returns: a non-null unmodifiable list of byte arrays, each entry containing a DER-encoded OCSP response (using the ASN.1 type OCSPResponse defined in RFC 6960). The order of the responses must match the order of the certificates presented by the server in its Certificate message (SeeSSLSession#getLocalCertificates() for server mode,
and SSLSession#getPeerCertificates() for client mode).
It is possible that fewer response entries may be returned than
the number of presented certificates. If an entry in the list
is a zero-length byte array, it should be treated by the
caller as if the OCSP entry for the corresponding certificate
is missing. The returned list may be empty if no OCSP responses
were presented during handshaking or if OCSP stapling is not
supported by either endpoint for this handshake.Returns a |
| ExtendedSSLSession | back to summary |
|---|---|
| public ExtendedSSLSession() Constructor for subclasses to call. | |
| exportKeyingMaterialData | back to summary |
|---|---|
| public byte[] exportKeyingMaterialData(String label, byte[] context, int length) throws SSLKeyException Generates Exported Keying Material (EKM) calculated according to the algorithms defined in RFCs 5705/8446.
RFC 5705 (for (D)TLSv1.2 and earlier) calculates different EKM
values depending on whether
Depending on the chosen underlying key derivation mechanism, the
raw bytes might not be extractable/exportable. In such cases, the
Implementation Specification The default implementation throws
| |
| exportKeyingMaterialKey | back to summary |
|---|---|
| public SecretKey exportKeyingMaterialKey(String keyAlg, String label, byte[] context, int length) throws SSLKeyException Generates Exported Keying Material (EKM) calculated according to the algorithms defined in RFCs 5705/8446.
RFC 5705 (for (D)TLSv1.2 and earlier) calculates different EKM
values depending on whether
Implementation Specification The default implementation throws
| |
| getLocalSupportedSignatureAlgorithms | back to summary |
|---|---|
| public abstract String[] getLocalSupportedSignatureAlgorithms() 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
| |
| getPeerSupportedSignatureAlgorithms | back to summary |
|---|---|
| public abstract String[] getPeerSupportedSignatureAlgorithms() 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.
| |
| getRequestedServerNames | back to summary |
|---|---|
| public List Obtains a
In server mode, unless the return
In client mode, unless the return
| |
| getStatusResponses | back to summary |
|---|---|
| public List Returns a
This method only applies to certificate-based server
authentication. An Implementation Specification This method throws UnsupportedOperationException by default. Classes derived from ExtendedSSLSession must implement this method.
| |