diff -r 9cfc8b0c45fd -r f8fb0c86f2b3 src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java --- a/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java Wed Nov 21 10:46:45 2018 -0800 +++ b/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java Wed Nov 21 15:06:13 2018 -0500 @@ -305,13 +305,6 @@ return this.identificationProtocol; } - /* - * Get the PSK identity. Take care not to use it in multiple connections. - */ - synchronized Optional getPskIdentity() { - return Optional.ofNullable(pskIdentity); - } - /* PSK identities created from new_session_ticket messages should only * be used once. This method will return the identity and then clear it * so it cannot be used again.