Search in sources :

Example 1 with KeyManagerActor

use of im.actor.core.modules.encryption.KeyManagerActor in project actor-platform by actorapp.

the class EncryptionModule method run.

public void run() {
    keyManager = system().actorOf(Props.create(new ActorCreator() {

        @Override
        public KeyManagerActor create() {
            return new KeyManagerActor(context());
        }
    }), "encryption/keys");
    keyManagerInt = new KeyManagerInt(keyManager);
    sessionManager = system().actorOf(Props.create(new ActorCreator() {

        @Override
        public SessionManagerActor create() {
            return new SessionManagerActor(context());
        }
    }), "encryption/sessions");
    sessionManagerInt = new SessionManagerInt(sessionManager);
    messageEncryptor = system().actorOf(Props.create(new ActorCreator() {

        @Override
        public EncryptedMsgActor create() {
            return new EncryptedMsgActor(context());
        }
    }), "encryption/messaging");
}
Also used : KeyManagerActor(im.actor.core.modules.encryption.KeyManagerActor) EncryptedMsgActor(im.actor.core.modules.encryption.EncryptedMsgActor) KeyManagerInt(im.actor.core.modules.encryption.KeyManagerInt) ActorCreator(im.actor.runtime.actors.ActorCreator)

Aggregations

EncryptedMsgActor (im.actor.core.modules.encryption.EncryptedMsgActor)1 KeyManagerActor (im.actor.core.modules.encryption.KeyManagerActor)1 KeyManagerInt (im.actor.core.modules.encryption.KeyManagerInt)1 ActorCreator (im.actor.runtime.actors.ActorCreator)1