-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from chaoxinhu/feature/restapi-adaption
Adaptions for the RESTful API
- Loading branch information
Showing
27 changed files
with
1,045 additions
and
275 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
62 changes: 62 additions & 0 deletions
62
src/main/java/com/webank/weid/constant/ParamKeyConstant.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,62 @@ | ||
/* | ||
* Copyright© (2018-2019) WeBank Co., Ltd. | ||
* | ||
* This file is part of weidentity-java-sdk. | ||
* | ||
* weidentity-java-sdk is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* weidentity-java-sdk is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with weidentity-java-sdk. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.webank.weid.constant; | ||
|
||
/** | ||
* Define param key names to be allowed to enable calls to Java SDK. | ||
* | ||
* @author chaoxinhu | ||
*/ | ||
public final class ParamKeyConstant { | ||
|
||
/** | ||
* Universal param key names. | ||
*/ | ||
public static final String WEID = "weId"; | ||
|
||
/** | ||
* WeIdService related param names. | ||
*/ | ||
public static final String PUBLIC_KEY = "publicKey"; | ||
|
||
/** | ||
* AuthorityIssuer related param names. | ||
*/ | ||
public static final String AUTHORITY_ISSUER_NAME = "name"; | ||
|
||
/** | ||
* CptService related param names. | ||
*/ | ||
public static final String CPT_JSON_SCHEMA = "cptJsonSchema"; | ||
public static final String CPT_SIGNATURE = "cptSignature"; | ||
|
||
/** | ||
* CredentialService related param names. | ||
*/ | ||
public static final String CPT_ID = "cptId"; | ||
public static final String ISSUER = "issuer"; | ||
public static final String CLAIM = "claim"; | ||
public static final String EXPIRATION_DATE = "expirationDate"; | ||
public static final String CREDENTIAL_SIGNATURE = "signature"; | ||
public static final String CONTEXT = "context"; | ||
public static final String CREDENTIAL_ID = "id"; | ||
public static final String ISSURANCE_DATE = "issuranceDate"; | ||
|
||
} |
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
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
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
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
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
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
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.