New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust the credential classes to be able to read the new JSON credentials #7

Closed
robert-bor opened this Issue Mar 28, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@robert-bor
Member

robert-bor commented Mar 28, 2013

Adopt Erik's classloader hack:

public class EndPoint {

    public java.lang.String adminURL;

    public java.lang.String region;

    public java.lang.String internalURL;

    public java.lang.String publicURL;

    public String id;
}
public class Metadata {

    public boolean is_admin;

    public List<String> roles;

}
public class AccessImpl implements Access {

// ... snip...

    public Metadata metadata;
public class Tenant {

    public boolean enabled;

    public String id;

    public String name;

    public String handle;

    public String description;
}

Make sure JSON ignores the (new) extra fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment