Class VncAuthenticationHandler
java.lang.Object
com.shinyhut.vernacular.protocol.auth.VncAuthenticationHandler
- All Implemented Interfaces:
SecurityHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(VncSession session) private static SecretKeySpecprivate static byte[]private static byte[]private static voidprivate static voidsendResponse(OutputStream out, byte[] challenge, String password)
-
Field Details
-
VNC_AUTHENTICATION_TYPE
private static final byte VNC_AUTHENTICATION_TYPE- See Also:
-
-
Constructor Details
-
VncAuthenticationHandler
public VncAuthenticationHandler()
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceSecurityHandler- Throws:
VncExceptionIOException
-
requestVncAuthentication
- Throws:
IOException
-
readChallenge
- Throws:
IOException
-
sendResponse
private static void sendResponse(OutputStream out, byte[] challenge, String password) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
buildKey
-
keyBytes
-