diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-28 14:11:00 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-28 14:11:00 +0400 |
commit | 87cfdbd973dcd5172e056f00e6e58644486342f3 (patch) | |
tree | ab291e27d41927f2ab113633673f333147b56fb5 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java | |
parent | e921f78433b08699fc4c1228384e982d7ae1ff97 (diff) |
Refactor array utility method into Arrays class
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java index b2c392c8..056d22aa 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java @@ -525,7 +525,7 @@ public class TlsServerProtocol * TLS_EMPTY_RENEGOTIATION_INFO_SCSV SCSV. If it does, set the secure_renegotiation flag * to TRUE. */ - if (arrayContains(offeredCipherSuites, CipherSuite.TLS_EMPTY_RENEGOTIATION_INFO_SCSV)) + if (Arrays.contains(offeredCipherSuites, CipherSuite.TLS_EMPTY_RENEGOTIATION_INFO_SCSV)) { this.secure_renegotiation = true; } @@ -639,7 +639,7 @@ public class TlsServerProtocol TlsUtils.writeOpaque8(TlsUtils.EMPTY_BYTES, message); int selectedCipherSuite = tlsServer.getSelectedCipherSuite(); - if (!arrayContains(this.offeredCipherSuites, selectedCipherSuite) + if (!Arrays.contains(this.offeredCipherSuites, selectedCipherSuite) || selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL || selectedCipherSuite == CipherSuite.TLS_EMPTY_RENEGOTIATION_INFO_SCSV) { @@ -648,7 +648,7 @@ public class TlsServerProtocol securityParameters.cipherSuite = selectedCipherSuite; short selectedCompressionMethod = tlsServer.getSelectedCompressionMethod(); - if (!arrayContains(this.offeredCompressionMethods, selectedCompressionMethod)) + if (!Arrays.contains(this.offeredCompressionMethods, selectedCompressionMethod)) { throw new TlsFatalAlert(AlertDescription.internal_error); } |