// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/key/KeyAuthCredential.java
// @Data
// @NoArgsConstructor
// public class KeyAuthCredential {
// 
//     @SerializedName("id")
//     private String id;
//     @SerializedName("key")
//     private String key;
//     @SerializedName("consumer_id")
//     private String consumerId;
//     @SerializedName("created_at")
//     private Long createdAt;
// 
//     public KeyAuthCredential(String key) {
//         this.key = key;
//     }
// }
// 
// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/key/KeyAuthCredentialList.java
// @Data
// public class KeyAuthCredentialList extends AbstractEntityList {
//     Long total;
//     List<KeyAuthCredential> data;
// }


import com.github.vaibhavsinha.kong.model.plugin.authentication.key.KeyAuthCredential;
import com.github.vaibhavsinha.kong.model.plugin.authentication.key.KeyAuthCredentialList;
package com.github.vaibhavsinha.kong.api.plugin.authentication;


/**
 * Created by vaibhav on 15/06/17.
 *
 * Updated by dvilela on 17/10/17.
 */
public interface KeyAuthService {
    KeyAuthCredential addCredentials(String consumerIdOrUsername, String key);
// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/key/KeyAuthCredential.java
// @Data
// @NoArgsConstructor
// public class KeyAuthCredential {
// 
//     @SerializedName("id")
//     private String id;
//     @SerializedName("key")
//     private String key;
//     @SerializedName("consumer_id")
//     private String consumerId;
//     @SerializedName("created_at")
//     private Long createdAt;
// 
//     public KeyAuthCredential(String key) {
//         this.key = key;
//     }
// }
// 
// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/key/KeyAuthCredentialList.java
// @Data
// public class KeyAuthCredentialList extends AbstractEntityList {
//     Long total;
//     List<KeyAuthCredential> data;
// }


// Path: src/main/java/com/github/vaibhavsinha/kong/api/plugin/authentication/KeyAuthService.java
import com.github.vaibhavsinha.kong.model.plugin.authentication.key.KeyAuthCredential;
import com.github.vaibhavsinha.kong.model.plugin.authentication.key.KeyAuthCredentialList;

package com.github.vaibhavsinha.kong.api.plugin.authentication;


/**
 * Created by vaibhav on 15/06/17.
 *
 * Updated by dvilela on 17/10/17.
 */
public interface KeyAuthService {
    KeyAuthCredential addCredentials(String consumerIdOrUsername, String key);
    KeyAuthCredentialList listCredentials(String consumerIdOrUsername, Long size, String offset);