equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
355 if (conn != null) { |
355 if (conn != null) { |
356 return conn.getAcc(); |
356 return conn.getAcc(); |
357 } else { |
357 } else { |
358 return engine.getAcc(); |
358 return engine.getAcc(); |
359 } |
359 } |
|
360 } |
|
361 |
|
362 String getEndpointIdentificationAlgorithmSE() { |
|
363 SSLParameters paras; |
|
364 if (conn != null) { |
|
365 paras = conn.getSSLParameters(); |
|
366 } else { |
|
367 paras = engine.getSSLParameters(); |
|
368 } |
|
369 |
|
370 return paras.getEndpointIdentificationAlgorithm(); |
360 } |
371 } |
361 |
372 |
362 private void setVersionSE(ProtocolVersion protocolVersion) { |
373 private void setVersionSE(ProtocolVersion protocolVersion) { |
363 if (conn != null) { |
374 if (conn != null) { |
364 conn.setVersion(protocolVersion); |
375 conn.setVersion(protocolVersion); |