Package com.portal.pcm
Class NIOSSLHandShake
java.lang.Object
com.portal.pcm.NIOSSLHandShake
Special class that handles the handshake and read/write operations when SSL is turned on during async/NIO mode.
Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
This material is the confidential property of Oracle Corporation or its
licensors and may be used, reproduced, stored or transmitted only in
accordance with a valid Oracle license or sublicense agreement. *
-
Constructor Summary
ConstructorsConstructorDescriptionNIOSSLHandShake(SSLEngine engine, SocketChannel m_socketChannel, com.portal.pcm.PCPContext m_ctx) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidMain method that does the HandshakebooleanReturns the current status if handshake is successful or not.intread(ByteBuffer dst) Reads the encrypted dataintwrite(ByteBuffer src) Writes the data
-
Constructor Details
-
NIOSSLHandShake
public NIOSSLHandShake(SSLEngine engine, SocketChannel m_socketChannel, com.portal.pcm.PCPContext m_ctx) throws IOException Constructor- Parameters:
engine- - ssl enginem_socketChannel- related socket channelm_ctx- - related pcp context- Throws:
IOException
-
-
Method Details
-
isHandShakeSuccessful
public boolean isHandShakeSuccessful()Returns the current status if handshake is successful or not.- Returns:
- true/false
-
doHandshake
Main method that does the Handshake- Throws:
IOException
-
read
Reads the encrypted data- Throws:
IOException
-
write
Writes the data- Throws:
IOException
-
close
- Throws:
IOException
-