public interface ConsentRestAPI
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<SCAConsentResponseTO> |
authorizeConsent(String consentId,
String authorisationId,
String authCode) |
org.springframework.http.ResponseEntity<SCAConsentResponseTO> |
getSCA(String consentId,
String authorisationId) |
org.springframework.http.ResponseEntity<SCAConsentResponseTO> |
grantPIISConsent(AisConsentTO piisConsent) |
org.springframework.http.ResponseEntity<SCAConsentResponseTO> |
selectMethod(String consentId,
String authorisationId,
String scaMethodId) |
org.springframework.http.ResponseEntity<SCAConsentResponseTO> |
startSCA(String consentId,
AisConsentTO aisConsent)
Initiates an sca process.
|
static final String BASE_PATH
@PostMapping(value="/{consentId}/authorisations")
org.springframework.http.ResponseEntity<SCAConsentResponseTO> startSCA(@PathVariable(value="consentId")
String consentId,
@RequestBody
AisConsentTO aisConsent)
consentId - : identifies the sca id among the users from which authorization is expected.aisConsent - : The ais consent target of the authorization. If the authorisation was started
by another user, this ais consent must match the one stored in the authorization object.@GetMapping(value="/{consentId}/authorisations/{authorisationId}")
org.springframework.http.ResponseEntity<SCAConsentResponseTO> getSCA(@PathVariable(value="consentId")
String consentId,
@PathVariable(value="authorisationId")
String authorisationId)
@PutMapping(value="/{consentId}/authorisations/{authorisationId}/scaMethods/{scaMethodId}")
org.springframework.http.ResponseEntity<SCAConsentResponseTO> selectMethod(@PathVariable(value="consentId")
String consentId,
@PathVariable(value="authorisationId")
String authorisationId,
@PathVariable(value="scaMethodId")
String scaMethodId)
@PutMapping(value="/{consentId}/authorisations/{authorisationId}/authCode")
org.springframework.http.ResponseEntity<SCAConsentResponseTO> authorizeConsent(@PathVariable(value="consentId")
String consentId,
@PathVariable(value="authorisationId")
String authorisationId,
@RequestParam(name="authCode")
String authCode)
@PostMapping(value="/piis") org.springframework.http.ResponseEntity<SCAConsentResponseTO> grantPIISConsent(@RequestBody AisConsentTO piisConsent)
Copyright © 2020. All rights reserved.