Package hudson.cli
Class Connection
java.lang.Object
hudson.cli.Connection
Deprecated.
No longer used.
-
Field Summary
Modifier and TypeFieldDescriptionfinal DataInputStream
Deprecated.final DataOutputStream
Deprecated.final InputStream
Deprecated.final OutputStream
Deprecated. -
Constructor Summary
ConstructorDescriptionConnection
(InputStream in, OutputStream out) Deprecated.Connection
(Socket socket) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.diffieHellman
(boolean side) Deprecated.Performs a Diffie-Hellman key exchange and produce a common secret between two ends of the connection.diffieHellman
(boolean side, int keySize) Deprecated.encryptConnection
(SecretKey sessionKey, String algorithm) Deprecated.Upgrades a connection with transport encryption by the specified symmetric cipher.static byte[]
fold
(byte[] bytes, int size) Deprecated.Given a byte array that contains arbitrary number of bytes, digests or expands those bits into the specified number of bytes without loss of entropy.void
proveIdentity
(byte[] sharedSecret, KeyPair key) Deprecated.Used in conjunction withverifyIdentity(byte[])
to prove that we actually own the private key of the given key pair.boolean
Deprecated.byte[]
Deprecated.readKey()
Deprecated.<T> T
Deprecated.Receives an object sent bywriteObject(Object)
readUTF()
Deprecated.verifyIdentity
(byte[] sharedSecret) Deprecated.Verifies that we are talking to a peer that actually owns the private key corresponding to the public key we get.void
writeBoolean
(boolean b) Deprecated.void
writeByteArray
(byte[] data) Deprecated.void
Deprecated.void
Deprecated.Sends a serializable object.void
Deprecated.
-
Field Details
-
in
Deprecated. -
out
Deprecated. -
din
Deprecated. -
dout
Deprecated.
-
-
Constructor Details
-
Connection
Deprecated.- Throws:
IOException
-
Connection
Deprecated.
-
-
Method Details
-
writeUTF
Deprecated.- Throws:
IOException
-
readUTF
Deprecated.- Throws:
IOException
-
writeBoolean
Deprecated.- Throws:
IOException
-
readBoolean
Deprecated.- Throws:
IOException
-
writeObject
Deprecated.Sends a serializable object.- Throws:
IOException
-
readObject
Deprecated.Receives an object sent bywriteObject(Object)
- Throws:
IOException
ClassNotFoundException
-
writeKey
Deprecated.- Throws:
IOException
-
readKey
Deprecated.- Throws:
IOException
-
writeByteArray
Deprecated.- Throws:
IOException
-
readByteArray
Deprecated.- Throws:
IOException
-
diffieHellman
Deprecated.Performs a Diffie-Hellman key exchange and produce a common secret between two ends of the connection.DH is also useful as a coin-toss algorithm. Two parties get the same random number without trusting each other.
- Throws:
IOException
GeneralSecurityException
-
diffieHellman
public KeyAgreement diffieHellman(boolean side, int keySize) throws IOException, GeneralSecurityException Deprecated.- Throws:
IOException
GeneralSecurityException
-
encryptConnection
public Connection encryptConnection(SecretKey sessionKey, String algorithm) throws IOException, GeneralSecurityException Deprecated.Upgrades a connection with transport encryption by the specified symmetric cipher.- Returns:
- A new
Connection
object that includes the transport encryption. - Throws:
IOException
GeneralSecurityException
-
fold
public static byte[] fold(byte[] bytes, int size) Deprecated.Given a byte array that contains arbitrary number of bytes, digests or expands those bits into the specified number of bytes without loss of entropy. Cryptographic utility code. -
proveIdentity
public void proveIdentity(byte[] sharedSecret, KeyPair key) throws IOException, GeneralSecurityException Deprecated.Used in conjunction withverifyIdentity(byte[])
to prove that we actually own the private key of the given key pair.- Throws:
IOException
GeneralSecurityException
-
verifyIdentity
Deprecated.Verifies that we are talking to a peer that actually owns the private key corresponding to the public key we get.- Throws:
IOException
GeneralSecurityException
-
close
Deprecated.- Throws:
IOException
-