Package io.jans.as.server.userinfo.ws.rs
Class UserInfoRestWebServiceImpl
java.lang.Object
io.jans.as.server.userinfo.ws.rs.UserInfoRestWebServiceImpl
- All Implemented Interfaces:
UserInfoRestWebService
Provides interface for User Info REST web services
- Version:
- October 14, 2019
- Author:
- Javier Rojas Blum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJSonResponse(io.jans.as.common.model.common.User user, AuthorizationGrant authorizationGrant, Collection<String> scopes) Builds a JSon String with the response parameters.getJweResponse(io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm, io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm, io.jans.as.common.model.common.User user, AuthorizationGrant authorizationGrant, Collection<String> scopes) jakarta.ws.rs.core.ResponserequestUserInfoGet(String accessToken, String authorization, jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.SecurityContext securityContext) jakarta.ws.rs.core.ResponserequestUserInfoPost(String accessToken, String authorization, jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.SecurityContext securityContext) booleanvalidateRequesteClaim(io.jans.model.JansAttribute jansAttribute, String[] clientAllowedClaims, Collection<String> scopes)
-
Constructor Details
-
UserInfoRestWebServiceImpl
public UserInfoRestWebServiceImpl()
-
-
Method Details
-
requestUserInfoGet
public jakarta.ws.rs.core.Response requestUserInfoGet(String accessToken, String authorization, jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.SecurityContext securityContext) - Specified by:
requestUserInfoGetin interfaceUserInfoRestWebService
-
requestUserInfoPost
public jakarta.ws.rs.core.Response requestUserInfoPost(String accessToken, String authorization, jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.SecurityContext securityContext) - Specified by:
requestUserInfoPostin interfaceUserInfoRestWebService
-
getJweResponse
public String getJweResponse(io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm keyEncryptionAlgorithm, io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm blockEncryptionAlgorithm, io.jans.as.common.model.common.User user, AuthorizationGrant authorizationGrant, Collection<String> scopes) throws Exception - Throws:
Exception
-
getJSonResponse
public String getJSonResponse(io.jans.as.common.model.common.User user, AuthorizationGrant authorizationGrant, Collection<String> scopes) throws io.jans.as.model.exception.InvalidClaimException Builds a JSon String with the response parameters.- Throws:
io.jans.as.model.exception.InvalidClaimException
-
validateRequesteClaim
public boolean validateRequesteClaim(io.jans.model.JansAttribute jansAttribute, String[] clientAllowedClaims, Collection<String> scopes)
-