Class DynamicRegistrationService

    • Constructor Detail

      • DynamicRegistrationService

        public DynamicRegistrationService()
    • Method Detail

      • register

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response register​(ClientRegistration request)
      • checkInitialAuthentication

        protected void checkInitialAuthentication()
      • checkSecurityContext

        protected void checkSecurityContext()
      • createRegAccessToken

        protected String createRegAccessToken​(Client client)
      • checkRegistrationAccessToken

        protected void checkRegistrationAccessToken​(Client c,
                                                    String accessToken)
      • readClientRegistrationWithQuery

        @GET
        @Produces("application/json")
        public ClientRegistration readClientRegistrationWithQuery​(@QueryParam("client_id")
                                                                  String clientId)
      • readClientRegistrationWithPath

        @GET
        @Path("{clientId}")
        @Produces("application/json")
        public ClientRegistration readClientRegistrationWithPath​(@PathParam("clientId")
                                                                 String clientId)
      • updateClientRegistration

        @PUT
        @Path("{clientId}")
        @Consumes("application/json")
        @Produces("application/json")
        public ClientRegistration updateClientRegistration​(@PathParam("clientId")
                                                           String clientId,
                                                           ClientRegistration request)
      • deleteClientRegistration

        @DELETE
        @Path("{clientId}")
        public javax.ws.rs.core.Response deleteClientRegistration​(@PathParam("clientId")
                                                                  String clientId)
      • readClient

        protected Client readClient​(String clientId)
      • getInitialAccessToken

        public String getInitialAccessToken()
      • setInitialAccessToken

        public void setInitialAccessToken​(String initialAccessToken)
      • fromClientRegistrationToClient

        protected void fromClientRegistrationToClient​(ClientRegistration request,
                                                      Client client)
      • isPasswordRequired

        protected boolean isPasswordRequired​(List<String> grantTypes,
                                             String tokenEndpointAuthMethod)
      • validateRequestUri

        protected void validateRequestUri​(String uri,
                                          String appType,
                                          List<String> grantTypes)
      • generateClientId

        protected String generateClientId()
      • getClientIdSizeInBytes

        public int getClientIdSizeInBytes()
      • setClientIdSizeInBytes

        public void setClientIdSizeInBytes​(int size)
      • getRequestAccessToken

        protected String getRequestAccessToken()
      • getClientSecretSizeInBytes

        protected int getClientSecretSizeInBytes​(ClientRegistration request)
      • setMessageContext

        @Context
        public void setMessageContext​(MessageContext context)
      • setSupportRegistrationAccessTokens

        public void setSupportRegistrationAccessTokens​(boolean supportRegistrationAccessTokens)
      • setUserRole

        public void setUserRole​(String userRole)