Skip to contentPackage: JwtProcessors
JwtProcessors
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: * Eurotech
13: *******************************************************************************/
14: package org.eclipse.kapua.service.authentication.shiro.utils;
15:
16: import org.eclipse.kapua.plugin.sso.openid.JwtProcessor;
17: import org.eclipse.kapua.plugin.sso.openid.exception.OpenIDException;
18: import org.eclipse.kapua.plugin.sso.openid.provider.ProviderOpenIDLocator;
19:
20: public final class JwtProcessors {
21:
22: private JwtProcessors() {
23: }
24:
25: public static JwtProcessor createDefault() throws OpenIDException {
26: ProviderOpenIDLocator singleSignOnLocator = new ProviderOpenIDLocator();
27: return singleSignOnLocator.getProcessor();
28: }
29: }