Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.zalando.stups.tokens;
 
 
 import java.io.File;
 
         implements ClientCredentialsProvider {
        super("client.json");
    }
    public JsonFileBackedClientCredentialsProvider(final File file) {
        super(file);
    }
    @Override
    public ClientCredentials get() {
        return read(JsonBackedClientCredentials.class);
    }
    @JsonIgnoreProperties(ignoreUnknown = true)
    private static class JsonBackedClientCredentials implements ClientCredentials {
        @JsonProperty("client_id")
        private String id;
        @JsonProperty("client_secret")
        private String secret;
        @Override
        public String getId() {
            return ;
        }
        @Override
        public String getSecret() {
            return ;
        }
    }
New to GrepCode? Check out our FAQ X