Search in sources :

Example 1 with Auth

use of de.dytanic.cloudnet.lib.network.auth.Auth in project CloudNet by Dytanic.

the class PacketInAuthReader method handleInput.

@Override
public void handleInput(Document data, PacketSender packetSender) {
    Auth auth = data.getObject("auth", new TypeToken<Auth>() {
    }.getType());
    handleAuth(auth, auth.getType(), auth.getAuthData(), packetSender);
}
Also used : TypeToken(com.google.gson.reflect.TypeToken) Auth(de.dytanic.cloudnet.lib.network.auth.Auth)

Example 2 with Auth

use of de.dytanic.cloudnet.lib.network.auth.Auth in project CloudNet by Dytanic.

the class CloudAPI method bootstrap.

/*================= Internal =====================*/
@Deprecated
public void bootstrap() {
    this.networkConnection.tryConnect(config.getBoolean("ssl"), new NetDispatcher(networkConnection, false), new Auth(serviceId), shutdownTask);
    NetworkUtils.header();
}
Also used : Auth(de.dytanic.cloudnet.lib.network.auth.Auth) NetDispatcher(de.dytanic.cloudnet.lib.network.NetDispatcher)

Aggregations

Auth (de.dytanic.cloudnet.lib.network.auth.Auth)2 TypeToken (com.google.gson.reflect.TypeToken)1 NetDispatcher (de.dytanic.cloudnet.lib.network.NetDispatcher)1