Search in sources :

Example 1 with AuthenticationMethod

use of io.jans.configapi.rest.model.AuthenticationMethod in project jans by JanssenProject.

the class AcrsResource method getDefaultAuthenticationMethod.

@GET
@ProtectedApi(scopes = { ApiAccessConstants.ACRS_READ_ACCESS })
public Response getDefaultAuthenticationMethod() {
    final GluuConfiguration gluuConfiguration = configurationService.findGluuConfiguration();
    AuthenticationMethod authenticationMethod = new AuthenticationMethod();
    authenticationMethod.setDefaultAcr(gluuConfiguration.getAuthenticationMode());
    return Response.ok(authenticationMethod).build();
}
Also used : AuthenticationMethod(io.jans.configapi.rest.model.AuthenticationMethod) GluuConfiguration(io.jans.as.persistence.model.configuration.GluuConfiguration) ProtectedApi(io.jans.configapi.core.rest.ProtectedApi)

Aggregations

GluuConfiguration (io.jans.as.persistence.model.configuration.GluuConfiguration)1 ProtectedApi (io.jans.configapi.core.rest.ProtectedApi)1 AuthenticationMethod (io.jans.configapi.rest.model.AuthenticationMethod)1