| Home >> All >> com >> [ ciphercore Javadoc ] |
| | com.ciphercore.samples.* (2) |
com.ciphercore: Javadoc index of package com.ciphercore.
Package Samples:
com.ciphercore.samples
Classes:
Client: Client is the class that establishes the connection with the Child. It handles all the crypto negotiation and prepares a pair of streams for communicating with your child. Typical Usage: import com.ciphercore.Client; import com.ciphercore.Server; public class MyClient { public static void main( String[] args ) { // Instantiate a client, tell it the child type, host and port. Client client = new Client( "mypackage.MyChild", "localhost", Server.DEFAULT_PORT ); // Tell the client to establish the connection to the child. client.connect(); try { // Get the streams that connect to the Child. InputStream ...
Child: Child is the abstract superclass of all classes that will run under the CipherCore server. It handles all the crypto and networking, and prepares a pair of IO streams for use by the extending class. Basic Usage: import java.ciphercore.Child public class MyChild extends Child { // This is the method that Child calls when the streams are ready. public void handleClient() { try { // Get the stream pair from the superclass. InputStream in = getBaseInputStream(); OutputStream out = getBaseOutputStream(); // Do that voodoo. while( ! finished ) { ... Talk to the client ... } } catch( IOException e ) { ...
Server: The CipherCore server. This is the class that responds to client requests. Each request specifies a child type, which the Server checks against it's list of allowed types. If the type is allowed, it spawns the child, gives it a copy of the servers Diffie Hellman key, and returns to waiting for the next child. Basic Usage java com.ciphercore.Server --children=pkg1.Class1:pkg2.Class2
InterProcessObject: This is the interface that must be implemented by all classes that will be used to provide Child servers with interprocess communication. This may also be the object of choice for the server to communicate with children (EG at startup and shutdown, instead of keeping a reference to the actual child thread)
ClientCipherDataReader
ClientDemo
ChildDemo
DHStock
ServerKeyException
UserPasswordException
CipherCoreProtocol
ChildDemo
ClientDemo
| Home | Contact Us | Privacy Policy | Terms of Service |