Skip to content

Commit

Permalink
feat(apikey): Add revocation date
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld committed Dec 2, 2015
1 parent c0d711e commit 4a38b74
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/io/gravitee/repository/management/model/ApiKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public class ApiKey {
*/
private String key;

/**
* Is the key revoked ?
*/
private boolean revoked;

/**
* Token expiration date
*/
Expand All @@ -44,9 +39,14 @@ public class ApiKey {
private Date createdAt;

/**
* The API key update date
* Is the key revoked ?
*/
private boolean revoked;

/**
* If the key was revoked, the date of revocation.
*/
private Date updatedAt;
private Date revokeAt;

/**
* The API for which the key is defined.
Expand Down Expand Up @@ -90,12 +90,12 @@ public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}

public Date getUpdatedAt() {
return updatedAt;
public Date getRevokeAt() {
return revokeAt;
}

public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
public void setRevokeAt(Date revokeAt) {
this.revokeAt = revokeAt;
}

public String getApi() {
Expand Down

0 comments on commit 4a38b74

Please sign in to comment.