forked from WeBankBlockchain/WeIdentity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,358 additions
and
1,108 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
Binary file not shown.
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
54 changes: 37 additions & 17 deletions
54
src/main/java/com/webank/weid/protocol/amop/GetPolicyAndPreCredentialArgs.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 |
---|---|---|
@@ -1,30 +1,50 @@ | ||
/* | ||
* Copyright© (2018-2019) WeBank Co., Ltd. | ||
* | ||
* This file is part of weid-java-sdk. | ||
* | ||
* weid-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. | ||
* | ||
* weid-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 weid-java-sdk. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
|
||
package com.webank.weid.protocol.amop; | ||
|
||
import java.util.Map; | ||
|
||
import com.webank.weid.protocol.amop.base.AmopBaseMsgArgs; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import com.webank.weid.protocol.amop.base.AmopBaseMsgArgs; | ||
|
||
/** | ||
* args for GetPolicyAndPreCredential. | ||
* @author tonychen 2019年12月3日 | ||
* | ||
*/ | ||
@Getter | ||
@Setter | ||
public class GetPolicyAndPreCredentialArgs extends AmopBaseMsgArgs{ | ||
|
||
private String policyId; | ||
private String targetUserWeId; | ||
private Integer cptId; | ||
/** | ||
* 用户填入的claim数据 | ||
*/ | ||
private String userInputForm; | ||
private Map<String, String>extra; | ||
public class GetPolicyAndPreCredentialArgs extends AmopBaseMsgArgs { | ||
|
||
private String policyId; | ||
|
||
private String targetUserWeId; | ||
|
||
private Integer cptId; | ||
|
||
/** | ||
* 用户填入的claim数据. | ||
*/ | ||
private String userInputForm; | ||
|
||
private Map<String, String> extra; | ||
} |
51 changes: 35 additions & 16 deletions
51
src/main/java/com/webank/weid/protocol/amop/IssueCredentialArgs.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 |
---|---|---|
@@ -1,27 +1,46 @@ | ||
package com.webank.weid.protocol.amop; | ||
/* | ||
* Copyright© (2018-2019) WeBank Co., Ltd. | ||
* | ||
* This file is part of weid-java-sdk. | ||
* | ||
* weid-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. | ||
* | ||
* weid-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 weid-java-sdk. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import com.webank.weid.protocol.amop.base.AmopBaseMsgArgs; | ||
import com.webank.weid.protocol.base.PresentationE; | ||
package com.webank.weid.protocol.amop; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import com.webank.weid.protocol.amop.base.AmopBaseMsgArgs; | ||
import com.webank.weid.protocol.base.PresentationE; | ||
|
||
/** | ||
* args for requesting issuer to issue credential. | ||
* @author tonychen 2019年12月4日 | ||
* | ||
*/ | ||
@Getter | ||
@Setter | ||
public class IssueCredentialArgs extends AmopBaseMsgArgs{ | ||
|
||
private PresentationE presentation; | ||
private Integer cptId; | ||
private String claim; | ||
private String policyId; | ||
private String userWeId; | ||
public class IssueCredentialArgs extends AmopBaseMsgArgs { | ||
|
||
private PresentationE presentation; | ||
|
||
private Integer cptId; | ||
|
||
private String claim; | ||
|
||
private String policyId; | ||
|
||
private String userWeId; | ||
|
||
} |
Oops, something went wrong.