Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.helidon.security.providers;
import java.util.Collections;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.regex.Pattern;
import io.helidon.common.CollectionsHelper;
import io.helidon.config.Config;
import io.helidon.security.ClassToInstanceStore;
/**
* Configuration of outbound target.
* Outbound target is a set of protocols and hosts that share a configuration of outbound provider.
* Name is considered to be a unique identification of a target, so it is used for hashCode and equals methods.
*/
public final class OutboundTarget {
/**
* Configuration key for name of target. If named "default", it will override possible default values from provider
*/
public static final String CONFIG_NAME = "name";
/**
* Configuration key for string array of supported transports. If not provided or empty, all transports are supported
*/
public static final String CONFIG_TRANSPORTS = "transports";
/**
* Configuration key for string array of hosts. If not provided or empty, all hosts are supported. If any host is the string
* "*" (asterisk), all hosts are supported
*/
public static final String CONFIG_HOSTS = "hosts";
/**
* Configuration key for string array of paths. If not provided or empty, all paths are supported. If any path is the string
* "*" (asterisk), all paths are supported.
*/
public static final String CONFIG_PATHS = "paths";
private final String name;
private final Set transports = new HashSet<>();
private final Set hosts = new HashSet<>();
private final List hostPatterns = new LinkedList<>();
private final Set paths = new HashSet<>();
private final List pathPatterns = new LinkedList<>();
private final Config config;
private final ClassToInstanceStore