-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create apis to verify and save license api-keys in Admin UI #1196…
… (#1203) * feat: create apis to verify and save license api-keys in Admin UI #1196 * feat: create apis to verify and save license api-keys in Admin UI #1196 * feat: create apis to verify and save license api-keys in Admin UI #1196
- Loading branch information
Showing
11 changed files
with
442 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...-server/model/src/main/java/io/jans/as/model/config/adminui/LicenseSpringCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package io.jans.as.model.config.adminui; | ||
|
||
public class LicenseSpringCredentials { | ||
private String apiKey; | ||
private String productCode; | ||
private String sharedKey; | ||
private String managementKey; | ||
|
||
public String getApiKey() { | ||
return apiKey; | ||
} | ||
|
||
public void setApiKey(String apiKey) { | ||
this.apiKey = apiKey; | ||
} | ||
|
||
public String getProductCode() { | ||
return productCode; | ||
} | ||
|
||
public void setProductCode(String productCode) { | ||
this.productCode = productCode; | ||
} | ||
|
||
public String getSharedKey() { | ||
return sharedKey; | ||
} | ||
|
||
public void setSharedKey(String sharedKey) { | ||
this.sharedKey = sharedKey; | ||
} | ||
|
||
public String getManagementKey() { | ||
return managementKey; | ||
} | ||
|
||
public void setManagementKey(String managementKey) { | ||
this.managementKey = managementKey; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "LicenseSpringCredentials{" + | ||
"apiKey='" + apiKey + '\'' + | ||
", productCode='" + productCode + '\'' + | ||
", sharedKey='" + sharedKey + '\'' + | ||
", managementKey='" + managementKey + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...dmin-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/model/auth/LicenseApiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package io.jans.ca.plugin.adminui.model.auth; | ||
|
||
public class LicenseApiResponse { | ||
private boolean apiResult; | ||
private String responseMessage; | ||
private int responseCode; | ||
|
||
public String getResponseMessage() { | ||
return responseMessage; | ||
} | ||
|
||
public void setResponseMessage(String responseMessage) { | ||
this.responseMessage = responseMessage; | ||
} | ||
|
||
public int getResponseCode() { | ||
return responseCode; | ||
} | ||
|
||
public void setResponseCode(int responseCode) { | ||
this.responseCode = responseCode; | ||
} | ||
|
||
public boolean isApiResult() { | ||
return apiResult; | ||
} | ||
|
||
public void setApiResult(boolean apiResult) { | ||
this.apiResult = apiResult; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "LicenseApiResponse{" + | ||
"apiResult=" + apiResult + | ||
", responseMessage='" + responseMessage + '\'' + | ||
", responseCode=" + responseCode + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.