Class PasswordProviderBuilderProcessor
java.lang.Object
com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor<ParameterizedBuilder<PasswordProvider>>
com.tangosol.coherence.config.xml.processor.PasswordProviderBuilderProcessor
- All Implemented Interfaces:
ConditionalElementProcessor<ParameterizedBuilder<PasswordProvider>>,ElementProcessor<ParameterizedBuilder<PasswordProvider>>
@XmlSimpleName("password-provider")
public class PasswordProviderBuilderProcessor
extends AbstractEmptyElementProcessor<ParameterizedBuilder<PasswordProvider>>
An
ElementProcessor for <password-provider> elements defined by
a Coherence Operational Configuration file.- Since:
- Coherence 12.12.1.4
- Author:
- spuneet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class is to wrap the existing password into the password-provider approach.Nested classes/interfaces inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
AbstractEmptyElementProcessor.EmptyElementBehavior -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterizedBuilder<PasswordProvider> Rerturns a builder for null password values.static ParameterizedBuilder<PasswordProvider> Generates a ParameterizedBuilder using the DefaultPasswordProvider.class by passing the string-input to its single-param constructor.onProcess(ProcessingContext context, XmlElement xmlElement) Process anXmlElementto return a specific type of value.Methods inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
accepts, isEmptyElement, process
-
Constructor Details
-
PasswordProviderBuilderProcessor
public PasswordProviderBuilderProcessor()Constructs aPasswordProviderBuilderProcessor.
-
-
Method Details
-
onProcess
public ParameterizedBuilder<PasswordProvider> onProcess(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException Description copied from class:AbstractEmptyElementProcessorProcess anXmlElementto return a specific type of value.- Specified by:
onProcessin classAbstractEmptyElementProcessor<ParameterizedBuilder<PasswordProvider>>- Parameters:
context- theProcessingContextin which theXmlElementis being processedxmlElement- theXmlElementto process- Returns:
- a value of type T
- Throws:
ConfigurationException- when a configuration problem was encountered
-
getPasswordProviderBuilderForPasswordStr
public static ParameterizedBuilder<PasswordProvider> getPasswordProviderBuilderForPasswordStr(String password) Generates a ParameterizedBuilder using the DefaultPasswordProvider.class by passing the string-input to its single-param constructor.- Parameters:
password- the clear text password- Returns:
- ParameterizedBuilder of PsswordProvider
-
getNullPasswordProviderBuilder
Rerturns a builder for null password values.- Returns:
- ParameterizedBuilder of PasswordProvider
-