Class HvlOAuthLdapRestController
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 Summary
ConstructorDescriptionHvlOAuthLdapRestController
(HvlOAuthLdapService ldapService) Instantiates a new HvlOAuthLdapRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> authenticate
(@NotNull @Valid HvlLdapAuthenticationModel authenticationModel) Authenticate by using authentication model.getObjectClassListByLdapType
(@NotBlank @Size(max=50) String type) Get object class list.
-
Constructor Details
-
HvlOAuthLdapRestController
Instantiates a new HvlOAuthLdapRestController.- Parameters:
ldapService
- the ldap service
-
-
Method Details
-
getObjectClassListByLdapType
@PreAuthorize("hasAuthority(\'keysis\')") 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 interfaceHvlLdapRestService
- Parameters:
type
- the type- Returns:
- the hvl response
-
authenticate
@PreAuthorize("hasAuthority(\'keysis\')") 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 interfaceHvlLdapRestService
- Parameters:
authenticationModel
- the authentication request model- Returns:
- the hvl response
-