com.qiniu.storage.UploadToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qiniu-java-sdk Show documentation
Show all versions of qiniu-java-sdk Show documentation
Qiniu Cloud Storage SDK for Java
package com.qiniu.storage;
import com.qiniu.common.QiniuException;
import com.qiniu.util.StringUtils;
class UploadToken extends RegionReqInfo {
private final String token;
UploadToken(String token) throws QiniuException {
super(token);
this.token = token;
}
String getToken() {
return token;
}
boolean isValid() {
return !StringUtils.isNullOrEmpty(token) && !StringUtils.isNullOrEmpty(getBucket()) && !StringUtils.isNullOrEmpty(getAccessKey());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy