![JAR search and dependency download from the Maven repository](/logo.png)
com.exactpro.sf.services.http.dictionary.OAuthDictionaryValidatorFactory Maven / Gradle / Ivy
/******************************************************************************
* Copyright 2009-2023 Exactpro (Exactpro Systems Limited)
*
* 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 com.exactpro.sf.services.http.dictionary;
import com.exactpro.sf.configuration.dictionary.impl.DefaultDictionaryValidator;
import com.exactpro.sf.configuration.dictionary.impl.PrototypeDictionaryValidator;
import com.exactpro.sf.configuration.dictionary.interfaces.IDictionaryValidator;
import com.exactpro.sf.configuration.dictionary.interfaces.IDictionaryValidatorFactory;
import java.io.InputStream;
public class OAuthDictionaryValidatorFactory implements IDictionaryValidatorFactory {
public static final String DICTIONARY_FILE_PATH = "service.dictionary_prototype/http_oauth_prototype.xml";
public static final IDictionaryValidator INSTANCE;
static {
InputStream resource = OAuthDictionaryValidatorFactory.class
.getClassLoader().getResourceAsStream(DICTIONARY_FILE_PATH);
INSTANCE = new PrototypeDictionaryValidator(resource, DefaultDictionaryValidator.INSTANCE);
}
@Override
public IDictionaryValidator createDictionaryValidator() {
return INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy