equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2011, 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 |
536 * multiple calls to this method. |
536 * multiple calls to this method. |
537 * <P> |
537 * <P> |
538 * If this <code>SSLEngine</code> has not yet started its initial |
538 * If this <code>SSLEngine</code> has not yet started its initial |
539 * handshake, this method will automatically start the handshake. |
539 * handshake, this method will automatically start the handshake. |
540 * <P> |
540 * <P> |
541 * This method will attempt to produce one SSL/TLS packet, and will |
541 * This method will attempt to produce SSL/TLS records, and will |
542 * consume as much source data as possible, but will never consume |
542 * consume as much source data as possible, but will never consume |
543 * more than the sum of the bytes remaining in each buffer. Each |
543 * more than the sum of the bytes remaining in each buffer. Each |
544 * <code>ByteBuffer</code>'s position is updated to reflect the |
544 * <code>ByteBuffer</code>'s position is updated to reflect the |
545 * amount of data consumed or produced. The limits remain the |
545 * amount of data consumed or produced. The limits remain the |
546 * same. |
546 * same. |