Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored AuthenticatinRealm.doGetAuthenticationInfo of Realms
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
- Loading branch information
Showing
8 changed files
with
523 additions
and
332 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
commons/src/main/java/org/eclipse/kapua/commons/logging/LoggingMdcKeys.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.logging; | ||
|
||
import org.eclipse.kapua.service.account.Account; | ||
import org.eclipse.kapua.service.user.User; | ||
import org.slf4j.MDC; | ||
|
||
/** | ||
* Logging {@link MDC} keys. | ||
* | ||
* @see MDC | ||
* @since 1.6.0 | ||
*/ | ||
public class LoggingMdcKeys { | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @since 1.6.0 | ||
*/ | ||
private LoggingMdcKeys() { | ||
} | ||
|
||
/** | ||
* The {@link Account#getId()}. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static final String SCOPE_ID = "scopeId"; | ||
|
||
/** | ||
* The {@link Account#getName()}. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static final String ACCOUNT_NAME = "scopeName"; | ||
|
||
/** | ||
* The {@link User#getId()} | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static final String USER_ID = "userId"; | ||
|
||
/** | ||
* The {@link User#getName()} ()} | ||
* | ||
* @since 1.6.0 | ||
*/ | ||
public static final String USER_NAME = "userName"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.