1 package de.dlr.shepard.auth.apikey.io;
2
3 import de.dlr.shepard.auth.apikey.entities.ApiKey;
4 import lombok.Data;
5 import lombok.EqualsAndHashCode;
6 import lombok.NoArgsConstructor;
7 import org.eclipse.microprofile.openapi.annotations.media.Schema;
8
9 @Data
10 @EqualsAndHashCode(callSuper = true)
11 @NoArgsConstructor
12 @Schema(name = "ApiKeyWithJWT")
13 public class ApiKeyWithJWTIO extends ApiKeyIO {
14
15 @Schema(readOnly = true, required = true)
16 private String jwt;
17
18 public ApiKeyWithJWTIO(ApiKey key) {
19 super(key);
20 this.jwt = key.getJws();
21 }
22 }