Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hms-core/hms-wallet-passgenerator
HMS wallet passgenerator is a sample code for how to create a wallet pass package.
https://github.com/hms-core/hms-wallet-passgenerator
hms huawei java maven pass pkcs7 wallet
Last synced: about 2 months ago
JSON representation
HMS wallet passgenerator is a sample code for how to create a wallet pass package.
- Host: GitHub
- URL: https://github.com/hms-core/hms-wallet-passgenerator
- Owner: HMS-Core
- License: apache-2.0
- Created: 2020-06-18T02:48:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T23:37:40.000Z (about 2 years ago)
- Last Synced: 2024-04-16T12:54:17.890Z (9 months ago)
- Topics: hms, huawei, java, maven, pass, pkcs7, wallet
- Language: Java
- Homepage: https://developer.huawei.com/consumer/cn/doc/development/HMS-Guides/wallet-guide-introduction?ha_source=hms1
- Size: 98.6 KB
- Stars: 11
- Watchers: 13
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HMS Wallet Passgenerator
## Table of Contents* [Introduction](#introduction)
* [Installation](#installation)
* [Configuration ](#configuration )
* [Supported Environments](#supported-environments)
* [Sample Code](#sample-code)
* [License](#license)## Introduction
This is sample code for how to create wallet pass package.## Installation
Before running the Demo code, you should have installed Java and Maven. You should have gotten a .pem file and a .cer file.## Supported Environments
Oracle Java 1.8 is recommended.## Configuration
1. Edit the `src\test\resources\release.config.properties` according to your service ID, pem file, and cer file.- Set the `pass.privatekey.YourServiceID` paramter.
For example, if your service ID is `hwpass.com.huawei.wallet.pass.sdktest`, rename the paramter to `pass.privatekey.hwpass.com.huawei.wallet.pass.sdktest`. Then do base64 encoding to the entire .pem file.
Then set the base64 string as the value of this paramter.
- Set the `pass.certificate.YourServiceID` paramter.
For example, if your service ID is `hwpass.com.huawei.wallet.pass.sdktest`, rename the paramter to `pass.certificate.hwpass.com.huawei.wallet.pass.sdktest`. Then do base64 encoding to the entire .cer file.
Then set the base64 string as the value of this paramter.2. Set your service ID to the `TEST_PASS_TYPE` parameter in the "src\test\java\PassFileServiceTestUtil.java" file.
## Sample Code
1. Run the `testCreatePassFile` method in the "src\test\java\PassFileReleaseTest.java" file to create a .hwpass file.
2. Run the `testCreateMessage` method in the "src\test\java\PassFileReleaseTest.java" file to create a signature.## Question or issues
If you want to evaluate more about HMS Core,
[r/HMSCore on Reddit](https://www.reddit.com/r/HuaweiDevelopers/) is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.If you have questions about how to use HMS samples, try the following options:
- [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services) is the best place for any programming questions. Be sure to tag your question with
`huawei-mobile-services`.
- [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101187876626530001) HMS Core Module is great for general questions, or seeking recommendations and opinions.If you run into a bug in our samples, please submit an [issue](https://github.com/HMS-Core/hms-wallet-passgenerator/issues) to the Repository. Even better you can submit a [Pull Request](https://github.com/HMS-Core/hms-wallet-passgenerator/pulls) with a fix.
## License
HMS wallet server sample code is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).