Make method unsupported in FIPS mode
@@ -159,6 +159,11 @@ public int getPacketBufferSize()
@SuppressWarnings("deprecation")
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
{
+ if (sslSessionContext.getSSLContext().isFips())
+ {
+ throw new UnsupportedOperationException();
+ }
+
/*
* "Note: this method exists for compatibility with previous releases. New applications
* should use getPeerCertificates() instead."
