@Test public void testGetPolicy() { List<Scope> scopes = new ArrayList<Scope>(); Scope scope = new Scope("name/cos:PutObject", "android-ut-persist-bucket-1253653367", "ap-guangzhou", "/test.txt"); scopes.add(scope); System.out.println(new JSONObject(CosStsClient.getPolicy(scopes)).toString(4)); }
public static String getPolicy(List<Scope> scopes) { if(scopes == null || scopes.size() == 0)return null; STSPolicy stsPolicy = new STSPolicy(); stsPolicy.addScope(scopes); return stsPolicy.toString(); }
CosStsClient { public static String getPolicy(List<Scope> scopes) { if(scopes == null || scopes.size() == 0)return null; STSPolicy stsPolicy = new STSPolicy(); stsPolicy.addScope(scopes); return stsPolicy.toString(); } }
CosStsClient { public static String getPolicy(List<Scope> scopes) { if(scopes == null || scopes.size() == 0)return null; STSPolicy stsPolicy = new STSPolicy(); stsPolicy.addScope(scopes); return stsPolicy.toString(); }  }
CosStsClient { public static String getPolicy(List<Scope> scopes) { if(scopes == null || scopes.size() == 0)return null; STSPolicy stsPolicy = new STSPolicy(); stsPolicy.addScope(scopes); return stsPolicy.toString(); }  static JSONObject getCredential(TreeMap<String, Object> config); static String getPolicy(List<Scope> scopes); }
CosStsClient { public static String getPolicy(List<Scope> scopes) { if(scopes == null || scopes.size() == 0)return null; STSPolicy stsPolicy = new STSPolicy(); stsPolicy.addScope(scopes); return stsPolicy.toString(); }  static JSONObject getCredential(TreeMap<String, Object> config); static String getPolicy(List<Scope> scopes); static final String STS_DEFAULT_HOST; }