Package se.idkollen.client
Class IdkollenClient
java.lang.Object
se.idkollen.client.IdkollenClient
Authenticated HTTP client for the IDkollen REST API.
Obtain an instance via IdkollenClientBuilder. All network calls return
CompletableFuture and are non-blocking.
-
Method Summary
Modifier and TypeMethodDescriptionbankIdNo()Return the BankID NO endpoint accessor.bankIdSe()Return the BankID SE endpoint accessor.document()Return the document upload/download endpoint accessor.freja()Return the Freja eID endpoint accessor.ftn()Return the Finnish Trust Network (FTN) endpoint accessor.<T> CompletableFuture<T>CompletableFuture<byte[]>mitId()Return the MitID endpoint accessor.<T> CompletableFuture<T>poll(Supplier<CompletableFuture<T>> statusFn, Predicate<T> isPending, PollOptions opts) PollstatusFnrepeatedly untilisPendingreturnsfalseor the timeout elapses.<T> CompletableFuture<T><T> CompletableFuture<T>postMultipart(String path, okhttp3.MultipartBody form, Class<T> type) vipps()Return the Vipps MobilePay endpoint accessor.
-
Method Details
-
bankIdSe
Return the BankID SE endpoint accessor. -
bankIdNo
Return the BankID NO endpoint accessor. -
freja
Return the Freja eID endpoint accessor. -
mitId
Return the MitID endpoint accessor. -
ftn
Return the Finnish Trust Network (FTN) endpoint accessor. -
vipps
Return the Vipps MobilePay endpoint accessor. -
document
Return the document upload/download endpoint accessor. -
get
-
post
-
delete
-
postMultipart
public <T> CompletableFuture<T> postMultipart(String path, okhttp3.MultipartBody form, Class<T> type) -
getBytes
-
poll
public <T> CompletableFuture<T> poll(Supplier<CompletableFuture<T>> statusFn, Predicate<T> isPending, PollOptions opts) PollstatusFnrepeatedly untilisPendingreturnsfalseor the timeout elapses.- Throws:
IdkollenError- with code"poll_timeout"if the timeout is exceeded.
-