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)
throws ForbiddenRestException
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.ForbiddenRestException - : consent exists with id@GetMapping(value="/{consentId}/authorisations/{authorisationId}")
org.springframework.http.ResponseEntity<SCAConsentResponseTO> getSCA(@PathVariable(value="consentId")
String consentId,
@PathVariable(value="authorisationId")
String authorisationId)
throws ConflictRestException
ConflictRestException@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)
throws ValidationRestException,
ConflictRestException,
NotFoundRestException
@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)
throws ValidationRestException,
NotFoundRestException,
ConflictRestException
@PostMapping(value="/piis") org.springframework.http.ResponseEntity<SCAConsentResponseTO> grantPIISConsent(@RequestBody AisConsentTO piisConsent) throws ForbiddenRestException
ForbiddenRestExceptionCopyright © 2019. All rights reserved.