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

com.qiniu.storage.UploadToken Maven / Gradle / Ivy

There is a newer version: 7.17.0
Show newest version
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