Class AcrsResource

java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.AcrsResource

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    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.rest.resource.auth.ConfigBaseResource

    getMaxCount

    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

    Methods inherited from class java.lang.Object

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

    • AcrsResource

      public AcrsResource()
  • Method Details

    • 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)