Class PasswordProviderBuilderProcessor.DefaultPasswordProvider

java.lang.Object
com.tangosol.coherence.config.xml.processor.PasswordProviderBuilderProcessor.DefaultPasswordProvider
All Implemented Interfaces:
PasswordProvider
Enclosing class:
PasswordProviderBuilderProcessor

public static class PasswordProviderBuilderProcessor.DefaultPasswordProvider extends Object implements PasswordProvider
This class is to wrap the existing password into the password-provider approach. The single-arg constructor will accept the String password and store it as a char[], to be returned when the "get()", implemented as part of PasswordProvider, is called.
Since:
Coherence 12.2.1.4
Author:
spuneet 2017.08.18
  • Constructor Details

    • DefaultPasswordProvider

      public DefaultPasswordProvider()
    • DefaultPasswordProvider

      public DefaultPasswordProvider(String pass)
      Constructor sets the password-string as a char[] when "get()" is called.
      Parameters:
      pass - the clear text password
  • Method Details

    • get

      public char[] get()
      Returns the password.
      Specified by:
      get in interface PasswordProvider
      Returns:
      a copy of password char[]. The consumer can zero the char[] after usage; and/but may call PasswordProvider#get if it requires the password again.