Class AcrsResource


  • @Path("/acrs")
    @Consumes("application/json")
    @Produces("application/json")
    public class AcrsResource
    extends ConfigBaseResource
    Author:
    Puja Sharma
    • Constructor Summary

      Constructors 
      Constructor Description
      AcrsResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response getDefaultAuthenticationMethod()
      Gets the current default authentication method.
      boolean isValidAgamaDeployment​(String authenticationMode)  
      jakarta.ws.rs.core.Response updateDefaultAuthenticationMethod​(@NotNull io.jans.configapi.rest.model.AuthenticationMethod authenticationMethod)
      Update the server's default authentication method.
      • Methods inherited from class io.jans.configapi.core.rest.BaseResource

        checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
    • Constructor Detail

      • AcrsResource

        public AcrsResource()
    • Method Detail

      • getDefaultAuthenticationMethod

        @GET
        public jakarta.ws.rs.core.Response getDefaultAuthenticationMethod()
        Gets the current default authentication method.
        Returns:
        a JAX-RS Response containing an AuthenticationMethod whose `defaultAcr` is set to the configured authentication mode
      • updateDefaultAuthenticationMethod

        @PUT
        public jakarta.ws.rs.core.Response updateDefaultAuthenticationMethod​(@NotNull
                                                                             @NotNull io.jans.configapi.rest.model.AuthenticationMethod authenticationMethod)
        Update the server's default authentication method.
        Parameters:
        authenticationMethod - an AuthenticationMethod whose `defaultAcr` is the new default; must be non-null and `defaultAcr` must not be blank
        Returns:
        a JAX-RS Response containing the updated AuthenticationMethod
        Throws:
        jakarta.ws.rs.BadRequestException - if `authenticationMethod` is null, `defaultAcr` is blank, or the provided ACR is invalid
      • isValidAgamaDeployment

        public boolean isValidAgamaDeployment​(String authenticationMode)