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 -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseGets the current default authentication method.booleanisValidAgamaDeployment(String authenticationMode) jakarta.ws.rs.core.ResponseupdateDefaultAuthenticationMethod(@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
getMaxCountMethods 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 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
-