@Test public void testSTSPolicy() { STSPolicy stsPolicy = new STSPolicy(); Scope scope = new Scope("name/cos:PutObject", "test-1250000000", "ap-guangzhou", "/test.txt"); stsPolicy.addScope(scope); JSONObject jsonObject = new JSONObject(stsPolicy.toString()); System.out.println(jsonObject.toString(4)); }
public STSPolicy() { }
STSPolicy { public STSPolicy() { } }
STSPolicy { public STSPolicy() { } STSPolicy(); }
STSPolicy { public STSPolicy() { } STSPolicy(); void addScope(List<Scope> scopes); void addScope(Scope scope); @Override String toString(); }
STSPolicy { public STSPolicy() { } STSPolicy(); void addScope(List<Scope> scopes); void addScope(Scope scope); @Override String toString();  }