Class UserInfoRestWebServiceImpl

  • All Implemented Interfaces:
    UserInfoRestWebService

    @Path("/")
    public class UserInfoRestWebServiceImpl
    extends java.lang.Object
    implements UserInfoRestWebService
    Provides interface for User Info REST web services
    Version:
    October 14, 2019
    Author:
    Javier Rojas Blum
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getClaims​(io.jans.as.common.model.common.User user, Scope scope)  
      java.lang.String getJSonResponse​(io.jans.as.common.model.common.User user, AuthorizationGrant authorizationGrant, java.util.Collection<java.lang.String> scopes)
      Builds a JSon String with the response parameters.
      java.lang.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, java.util.Collection<java.lang.String> scopes)  
      javax.ws.rs.core.Response requestUserInfoGet​(java.lang.String accessToken, java.lang.String authorization, javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.SecurityContext securityContext)  
      javax.ws.rs.core.Response requestUserInfoPost​(java.lang.String accessToken, java.lang.String authorization, javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.SecurityContext securityContext)  
      boolean validateRequesteClaim​(io.jans.model.GluuAttribute gluuAttribute, java.lang.String[] clientAllowedClaims, java.util.Collection<java.lang.String> scopes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserInfoRestWebServiceImpl

        public UserInfoRestWebServiceImpl()
    • Method Detail

      • requestUserInfoGet

        public javax.ws.rs.core.Response requestUserInfoGet​(java.lang.String accessToken,
                                                            java.lang.String authorization,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.ws.rs.core.SecurityContext securityContext)
        Specified by:
        requestUserInfoGet in interface UserInfoRestWebService
      • requestUserInfoPost

        public javax.ws.rs.core.Response requestUserInfoPost​(java.lang.String accessToken,
                                                             java.lang.String authorization,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.ws.rs.core.SecurityContext securityContext)
        Specified by:
        requestUserInfoPost in interface UserInfoRestWebService
      • getJweResponse

        public java.lang.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,
                                               java.util.Collection<java.lang.String> scopes)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getJSonResponse

        public java.lang.String getJSonResponse​(io.jans.as.common.model.common.User user,
                                                AuthorizationGrant authorizationGrant,
                                                java.util.Collection<java.lang.String> scopes)
                                         throws io.jans.as.model.exception.InvalidClaimException,
                                                java.text.ParseException
        Builds a JSon String with the response parameters.
        Throws:
        io.jans.as.model.exception.InvalidClaimException
        java.text.ParseException
      • validateRequesteClaim

        public boolean validateRequesteClaim​(io.jans.model.GluuAttribute gluuAttribute,
                                             java.lang.String[] clientAllowedClaims,
                                             java.util.Collection<java.lang.String> scopes)
      • getClaims

        public java.util.Map<java.lang.String,​java.lang.Object> getClaims​(io.jans.as.common.model.common.User user,
                                                                                Scope scope)
                                                                         throws io.jans.as.model.exception.InvalidClaimException,
                                                                                java.text.ParseException
        Throws:
        io.jans.as.model.exception.InvalidClaimException
        java.text.ParseException