com.aliyun.drc.utils.DefaultServerAuthTool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
The core java client for accessing Data Transmission Service
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;
}
}