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

com.qcloud.cos.auth.AnonymousCOSCredentials Maven / Gradle / Ivy

The newest version!
package com.qcloud.cos.auth;

public class AnonymousCOSCredentials implements COSCredentials {
    private String appId;

    public AnonymousCOSCredentials(String appId) {
        super();
        if (appId == null) {
            throw new IllegalArgumentException("Appid cannot be null.");
        }
        try {
            Long.valueOf(appId);
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException("Appid is invalid num str.");
        }
        this.appId = appId;
    }

    @Override
    public String getCOSAppId() {
        return appId;
    }

    @Override
    public String getCOSAccessKeyId() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getCOSSecretKey() {
        // TODO Auto-generated method stub
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy