All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.drc.utils.DefaultServerAuthTool Maven / Gradle / Ivy

There is a newer version: 5.0.0.1-cloud.beta
Show newest version
package com.aliyun.drc.utils;

import alibaba.drcnet.util.ServerTokenAuthTool;

/**
 * Created by haikuo.zhk on 2017/7/3.
 */
public class DefaultServerAuthTool implements ServerTokenAuthTool {

    public static final byte[] clientAuthToken = "hello drc".getBytes();

    public static final byte[] extendInfo = "helllll".getBytes();

    @Override
    public boolean authServerToken(byte[] serverToken, int len) {
        System.out.println("receive auth info from server: " + (new String(serverToken)));
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy