Skip to content

Package: RegistrationService

RegistrationService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Red Hat Inc and others.
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Red Hat Inc - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.authentication.registration;
14:
15: import org.eclipse.kapua.KapuaException;
16: import org.eclipse.kapua.service.KapuaService;
17: import org.eclipse.kapua.service.authentication.JwtCredentials;
18:
19: public interface RegistrationService extends KapuaService {
20:
21: boolean createAccount(JwtCredentials credentials) throws KapuaException;
22:
23: /**
24: * Test if account creation is enabled
25: *
26: * @return {@code true} if account creation is enabled, {@code false} otherwise
27: */
28: boolean isAccountCreationEnabled();
29: }