Skip to content

Commit de98f45

Browse files
Updated Github workflows
1 parent f06c3dc commit de98f45

3 files changed

Lines changed: 21 additions & 95 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
name: Java CI
7-
81
on: [push]
9-
102
jobs:
113
build:
124
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,48 @@
44

55
# BankID SDK
66

7-
SDK to interact with BankID API. It includes support for all the v5.1 features.
8-
There are some [examples that may be useful](./examples).
7+
SDK to interact with BankID API. It includes support for all the v5.1 features. There are
8+
some [examples that may be useful](./examples).
99

1010
## Installation
11+
1112
The artifact is available through Maven Central via Sonatype.
1213

1314
### Maven
15+
1416
```xml
17+
1518
<dependency>
16-
<groupId>dev.nicklasw</groupId>
17-
<artifactId>bankid-sdk</artifactId>
18-
<version>0.10.0</version>
19+
<groupId>dev.nicklasw</groupId>
20+
<artifactId>bankid-sdk</artifactId>
21+
<version>0.10.0</version>
1922
</dependency>
2023
```
2124

2225
### Gradle
26+
2327
```
2428
compile 'dev.nicklasw:bankid-sdk:0.10.0'
2529
```
2630

2731
## Changelog
2832

29-
Please see the [changelog](./CHANGELOG.md) for a release history and indications on how to upgrade from one version to another.
33+
Please see the [changelog](./CHANGELOG.md) for a release history and indications on how to upgrade from one version to
34+
another.
3035

3136
## Contributing
3237

33-
If you find any problems or have suggestions about this library, please submit an issue. Moreover, any pull request, code review and feedback are welcome.
38+
If you find any problems or have suggestions about this library, please submit an issue. Moreover, any pull request,
39+
code review and feedback are welcome.
3440

3541
## Code Guide
3642

37-
We use GitHub Actions to make sure the codebase is consistent and continuously tested (`gradle check`). We try to keep comments at a maximum of 120 characters of length and code at 120.
43+
We use GitHub Actions to make sure the codebase is consistent and continuously tested (`gradle check`). We try to keep
44+
comments at a maximum of 120 characters of length and code at 120.
3845

3946
## General Usage
40-
```java
4147

48+
```java
4249
import static dev.nicklasw.bankid.configuration.Configuration.URL_TEST;
4350

4451
import java.net.URI;
@@ -57,21 +64,19 @@ final URI pkcs12ResourceUri = ResourceUtils.optionalUriFrom("test.p12")
5764
final URI caResourceUri = ResourceUtils.optionalUriFrom("ca.test.crt")
5865
.orElseThrow();
5966

60-
final Pkcs12 pkcs12 = Pkcs12.of(Path.of(pkcs12ResourceUri), "qwerty123");
61-
6267
final Configuration configuration = Configuration.builder()
6368
.baseURL(URL_TEST)
64-
.pkcs12(pkcs12)
69+
.pkcs12(Pkcs12.of(Path.of(pkcs12ResourceUri), "qwerty123"))
6570
.certificate(Path.of(caResourceUri))
6671
.build();
6772

6873
final BankId bankId = BankId.of(configuration);
6974

7075
final AuthenticateResponse authenticateResponse = bankId.authenticate(
71-
AuthenticationRequest.builder()
72-
.personalNumber("PERSONAL_NUMBER")
73-
.endUserIp("IP_ADDRESS")
74-
.build());
76+
AuthenticationRequest.builder()
77+
.personalNumber("PERSONAL_NUMBER")
78+
.endUserIp("IP_ADDRESS")
79+
.build());
7580
```
7681

7782
## License

0 commit comments

Comments
 (0)