Class UserInfoController
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.controller.UserInfoController
Controller that provides a user information.
PowerAuth protocol versions:
- 3.0
- 3.1
- 3.2
- 3.3
- Author:
- Petr Dvorak, petr@wultra.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclaims(io.getlime.security.powerauth.rest.api.model.request.UserInfoRequest request, EncryptionContext encryptionContext) Fetch user info.
-
Constructor Details
-
UserInfoController
Default constructor.- Parameters:
userInfoService- User info service.
-
-
Method Details
-
claims
@PostMapping("info") public Map<String,Object> claims(io.getlime.security.powerauth.rest.api.model.request.UserInfoRequest request, EncryptionContext encryptionContext) throws PowerAuthUserInfoException, PowerAuthEncryptionException Fetch user info.- Parameters:
request- Request with user info service.encryptionContext- PowerAuth ECIES encryption context.- Returns:
- Encrypted user info claims.
- Throws:
PowerAuthUserInfoException- In case there is an error while fetching claims.PowerAuthEncryptionException- In case of failed encryption.
-