@Service public class PsuService extends Object
| Constructor and Description |
|---|
PsuService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedProduct(String psuId,
String product)
Adds an allowed payment product to corresponding PSU`s list
|
String |
createPsuAndReturnId(Psu psu)
Checks psu for validity, saves it to DB and register it to Keycloak
|
boolean |
deletePsuByAspspPsuId(String aspspPsuId)
Removes PSU for ASPSP by its ASPSP primary identifier
|
List<String> |
getAllowedPaymentProducts(String iban)
Returns a list of allowed products for certain PSU by its ASPSP primary identifier
|
List<Psu> |
getAllPsuList()
Returns a complete list of all PSUs at current ASPSP
|
Optional<Psu> |
getPsuByPsuId(String psuId)
Returns PSU by its primary ASPSP identifier
|
List<AspspAuthenticationObject> |
getScaMethods(String psuId)
Returns a List of SCA methods that could be applied to named PSU
|
void |
updateScaMethods(String psuId,
List<AspspAuthenticationObject> scaMethods)
Updates allowed PSU`s SCA methods Set
|
public String createPsuAndReturnId(Psu psu)
psu - PSU to be savedpublic Optional<Psu> getPsuByPsuId(String psuId)
psuId - String representation of ASPSP identifier for specific PSUpublic List<Psu> getAllPsuList()
public boolean deletePsuByAspspPsuId(String aspspPsuId)
aspspPsuId - String representation of ASPSP identifier for specific PSUpublic List<String> getAllowedPaymentProducts(String iban)
iban - String representation of iban of PSU`s accountpublic void addAllowedProduct(String psuId, String product)
psuId - String representation of ASPSP identifier for specific PSUproduct - String representation of product to be addedpublic List<AspspAuthenticationObject> getScaMethods(String psuId)
psuId - PSU idpublic void updateScaMethods(String psuId, List<AspspAuthenticationObject> scaMethods)
psuId - PSU idscaMethods - list of SCA methodsCopyright © 2019. All rights reserved.