-
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 #184 from WeBankFinTech/feature/support-lite-crede…
…ntial Feature/support delegate setAttribute method
- Loading branch information
Showing
9 changed files
with
544 additions
and
115 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
47 changes: 47 additions & 0 deletions
47
src/main/java/com/webank/weid/protocol/request/AuthenticationArgs.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,47 @@ | ||
/* | ||
* Copyright© (2018-2020) 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.request; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* The Arguments when setting Authentication for WeIdentity DID. | ||
* | ||
* @author tonychen 2020.4.24 | ||
*/ | ||
@Data | ||
public class AuthenticationArgs { | ||
|
||
/** | ||
* Required: The WeIdentity DID. | ||
*/ | ||
private String weId; | ||
|
||
/** | ||
* Required: The owner. | ||
*/ | ||
private String owner; | ||
|
||
/** | ||
* Required: The public key. | ||
*/ | ||
private String publicKey; | ||
|
||
} |
60 changes: 60 additions & 0 deletions
60
src/main/java/com/webank/weid/protocol/request/PublicKeyArgs.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,60 @@ | ||
/* | ||
* Copyright© (2018-2020) 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.request; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* The Arguments when setting Public Key for WeIdentity DID. | ||
* | ||
* @author tonychen 2020.4.24 | ||
*/ | ||
@Data | ||
public class PublicKeyArgs { | ||
|
||
/** | ||
* Required: The WeIdentity DID. | ||
*/ | ||
private String weId; | ||
|
||
/** | ||
* Required: The type. | ||
*/ | ||
private String type = "Secp256k1"; | ||
|
||
/** | ||
* Required: The owner. | ||
*/ | ||
private String owner; | ||
|
||
/** | ||
* Required: The public key. | ||
*/ | ||
private String publicKey; | ||
|
||
/** | ||
* nothing to do. | ||
* | ||
* @param type the public key type | ||
*/ | ||
public void setType(String type) { | ||
this.type = "Secp256k1"; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/com/webank/weid/protocol/request/ServiceArgs.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,47 @@ | ||
/* | ||
* Copyright© (2018-2020) 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.request; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* The Arguments when setting services. | ||
* | ||
* @author tonychen 2020.4.24 | ||
*/ | ||
@Data | ||
public class ServiceArgs { | ||
|
||
/** | ||
* Required: user's WeIdentity DID. | ||
*/ | ||
private String weId; | ||
|
||
/** | ||
* Required: service type. | ||
*/ | ||
private String type; | ||
|
||
/** | ||
* Required: service endpoint. | ||
*/ | ||
private String serviceEndpoint; | ||
|
||
} |
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.