Class AccountFormService

    • Method Detail

      • init

        public void init()
      • accountServiceBaseUrl

        public static javax.ws.rs.core.UriBuilder accountServiceBaseUrl​(javax.ws.rs.core.UriInfo uriInfo)
      • accountServiceApplicationPage

        public static javax.ws.rs.core.UriBuilder accountServiceApplicationPage​(javax.ws.rs.core.UriInfo uriInfo)
      • accountPage

        @Path("/")
        @GET
        @Produces("text/html")
        public javax.ws.rs.core.Response accountPage()
        Get account information.
        Returns:
      • totpUrl

        public static javax.ws.rs.core.UriBuilder totpUrl​(javax.ws.rs.core.UriBuilder base)
      • totpPage

        @Path("totp")
        @GET
        public javax.ws.rs.core.Response totpPage()
      • passwordUrl

        public static javax.ws.rs.core.UriBuilder passwordUrl​(javax.ws.rs.core.UriBuilder base)
      • passwordPage

        @Path("password")
        @GET
        public javax.ws.rs.core.Response passwordPage()
      • federatedIdentityPage

        @Path("identity")
        @GET
        public javax.ws.rs.core.Response federatedIdentityPage()
      • logPage

        @Path("log")
        @GET
        public javax.ws.rs.core.Response logPage()
      • sessionsPage

        @Path("sessions")
        @GET
        public javax.ws.rs.core.Response sessionsPage()
      • applicationsPage

        @Path("applications")
        @GET
        public javax.ws.rs.core.Response applicationsPage()
      • processAccountUpdate

        @Path("/")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processAccountUpdate()
        Update account information.

        Form params:

        firstName lastName email

        Returns:
      • processSessionsLogout

        @Path("sessions")
        @POST
        public javax.ws.rs.core.Response processSessionsLogout()
      • processRevokeGrant

        @Path("applications")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processRevokeGrant()
      • processTotpUpdate

        @Path("totp")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processTotpUpdate()
        Update the TOTP for this account.

        form parameters:

        totp - otp generated by authenticator totpSecret - totp secret to register

        Returns:
      • processPasswordUpdate

        @Path("password")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processPasswordUpdate()
        Update account password

        Form params:

        password - old password password-new pasword-confirm

        Returns:
      • processFederatedIdentityUpdate

        @Path("identity")
        @POST
        @Consumes("application/x-www-form-urlencoded")
        public javax.ws.rs.core.Response processFederatedIdentityUpdate()
      • resourcesPage

        @Path("resource")
        @GET
        public javax.ws.rs.core.Response resourcesPage​(@QueryParam("resource_id")
                                                       String resourceId)
      • resourceDetailPage

        @Path("resource/{resource_id}")
        @GET
        public javax.ws.rs.core.Response resourceDetailPage​(@PathParam("resource_id")
                                                            String resourceId)
      • resourceDetailPageAfterGrant

        @Path("resource/{resource_id}/grant")
        @GET
        public javax.ws.rs.core.Response resourceDetailPageAfterGrant​(@PathParam("resource_id")
                                                                      String resourceId)
      • grantPermission

        @Path("resource/{resource_id}/grant")
        @POST
        public javax.ws.rs.core.Response grantPermission​(@PathParam("resource_id")
                                                         String resourceId,
                                                         @FormParam("action")
                                                         String action,
                                                         @FormParam("permission_id")
                                                         String[] permissionId,
                                                         @FormParam("requester")
                                                         String requester)
      • resourceDetailPageAfterShare

        @Path("resource/{resource_id}/share")
        @GET
        public javax.ws.rs.core.Response resourceDetailPageAfterShare​(@PathParam("resource_id")
                                                                      String resourceId)
      • shareResource

        @Path("resource/{resource_id}/share")
        @POST
        public javax.ws.rs.core.Response shareResource​(@PathParam("resource_id")
                                                       String resourceId,
                                                       @FormParam("user_id")
                                                       String[] userIds,
                                                       @FormParam("scope_id")
                                                       String[] scopes)
      • processResourceActions

        @Path("resource")
        @POST
        public javax.ws.rs.core.Response processResourceActions​(@FormParam("resource_id")
                                                                String[] resourceIds,
                                                                @FormParam("action")
                                                                String action)
      • loginRedirectUrl

        public static javax.ws.rs.core.UriBuilder loginRedirectUrl​(javax.ws.rs.core.UriBuilder base)