Class RegisterService


  • @Named
    public class RegisterService
    extends Object
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • RegisterService

        public RegisterService()
    • Method Detail

      • clientScopesToString

        public String clientScopesToString​(io.jans.as.common.model.registration.Client client)
      • identifyResponseTypes

        public Set<io.jans.as.model.common.ResponseType> identifyResponseTypes​(Collection<io.jans.as.model.common.ResponseType> requestResponseTypes,
                                                                               Collection<io.jans.as.model.common.GrantType> requestGrantTypes)
      • identifyGrantTypes

        public Set<io.jans.as.model.common.GrantType> identifyGrantTypes​(Collection<io.jans.as.model.common.ResponseType> identifiedResponseTypes,
                                                                         Collection<io.jans.as.model.common.GrantType> requestGrantTypes)
      • listAsArrayWithoutDuplicates

        public static String[] listAsArrayWithoutDuplicates​(List<String> list)
      • updateClientFromRequestObject

        public void updateClientFromRequestObject​(io.jans.as.common.model.registration.Client client,
                                                  io.jans.as.client.RegisterRequest requestObject,
                                                  boolean update)
                                           throws org.json.JSONException
        Throws:
        org.json.JSONException
      • assignScopes

        public void assignScopes​(io.jans.as.common.model.registration.Client client,
                                 io.jans.as.client.RegisterRequest requestObject)
      • addDefaultCustomAttributes

        public void addDefaultCustomAttributes​(org.json.JSONObject requestObject)
      • createInternalErrorResponse

        public jakarta.ws.rs.core.Response.ResponseBuilder createInternalErrorResponse​(String reason)
      • parseRequestObjectWithoutValidation

        @NotNull
        public @NotNull org.json.JSONObject parseRequestObjectWithoutValidation​(String requestParams)
                                                                         throws org.json.JSONException
        Throws:
        org.json.JSONException