com.jscape.inet.ssh.transport
Class KeyCreator
java.lang.Object
com.jscape.inet.ssh.transport.KeyCreator
public class KeyCreator
- extends java.lang.Object
- Version:
- 1.0
- Author:
- Alex Usun
Constructor Summary |
KeyCreator(byte[] sharedSecret,
byte[] exchangeHash,
java.security.MessageDigest hash)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyCreator
public KeyCreator(byte[] sharedSecret,
byte[] exchangeHash,
java.security.MessageDigest hash)
- Parameters:
sharedSecret
- exchangeHash
- hash
-
setSessionId
public void setSessionId(byte[] sessionId)
- Setups the current session ID.
- Parameters:
sessionId
- the current session ID
getExchangeHash
public byte[] getExchangeHash()
- Obtains the exchange hash value.
- Returns:
- the exchange hash value
createClientServerIV
public byte[] createClientServerIV(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
createServerClientIV
public byte[] createServerClientIV(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
createClientServerCipherKey
public byte[] createClientServerCipherKey(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
createServerClientCipherKey
public byte[] createServerClientCipherKey(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
createClientServerMacKey
public byte[] createClientServerMacKey(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
createServerClientMacKey
public byte[] createServerClientMacKey(int keyLength)
throws TransportException
- Parameters:
keyLength
-
- Returns:
- byte array
- Throws:
TransportException
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved