java.lang.Object
tr.com.havelsan.javarch.oauth.ldap.starter.authentication.controller.HvlOAuthLdapRestController
All Implemented Interfaces:
HvlLdapRestService

@RestController @RequestMapping("${hvl.oauth.ldap.service.controller-path:/ldap}") @HvlActuatorService(name="HvlLdapRestService", groupName="HvlLdap") public class HvlOAuthLdapRestController extends Object implements HvlLdapRestService
The class in which service endpoints are defined for ldap operations.
  • Constructor Details

    • HvlOAuthLdapRestController

      public HvlOAuthLdapRestController(HvlOAuthLdapService ldapService)
      Instantiates a new HvlOAuthLdapRestController.
      Parameters:
      ldapService - the ldap service
  • Method Details

    • getObjectClassListByLdapType

      @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<String>> getObjectClassListByLdapType(@NotBlank @Size(max=50) @PathVariable("type") @NotBlank @Size(max=50) String type)
      Get object class list.
      Specified by:
      getObjectClassListByLdapType in interface HvlLdapRestService
      Parameters:
      type - the type
      Returns:
      the hvl response
    • authenticate

      @PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> authenticate(@NotNull @Valid @RequestBody @NotNull @Valid HvlLdapAuthenticationModel authenticationModel)
      Authenticate by using authentication model.
      Specified by:
      authenticate in interface HvlLdapRestService
      Parameters:
      authenticationModel - the authentication request model
      Returns:
      the hvl response