Unverified Commit c8fb8a5e authored by mmaker1234's avatar mmaker1234 Committed by GitHub
Browse files

Add ExpiresAt field to SSH Key object (#857)



Co-authored-by: default avatarVladimir Krumov <vladimir.krumov@paysafe.com>
parent f9fbd882
...@@ -12,6 +12,7 @@ public class SshKey { ...@@ -12,6 +12,7 @@ public class SshKey {
private String title; private String title;
private String key; private String key;
private Date createdAt; private Date createdAt;
private Date expiresAt;
private Long userId; private Long userId;
...@@ -47,6 +48,14 @@ public class SshKey { ...@@ -47,6 +48,14 @@ public class SshKey {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
}
@JsonIgnore @JsonIgnore
public Long getUserId() { public Long getUserId() {
return userId; return userId;
......
{ {
"id": 1, "id": 1,
"title": "Public key", "title": "Public key",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=", "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
"created_at": "2014-08-01T14:47:39.080Z" "created_at": "2014-08-01T14:47:39.080Z",
"expires_at": "2015-08-01T14:47:39.080Z"
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment