Interface PasswordProvider

All Known Implementing Classes:
InputStreamPasswordProvider, PasswordProviderBuilderProcessor.DefaultPasswordProvider, URLPasswordProvider

public interface PasswordProvider
PasswordProvider allows Coherence users to plug in their own mechanism to determine the appropriate password.
Since:
12.2.1.4
Author:
spuneet
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PasswordProvider
    A singleton implementation of a PasswordProvider that always returns an empty array.
  • Method Summary

    Modifier and Type
    Method
    Description
    char[]
    get()
    Returns the password to be used in clear format.
    static void
    reset(char[]... arrays)
    Resets the contents of a password array
  • Field Details

  • Method Details

    • get

      char[] get()
      Returns the password to be used in clear format. The char[] returned from the get() method is not retained by the provider, and it is expected that the consumer zero's out the array once it is done with the password.
      Returns:
      password as char[]
    • reset

      static void reset(char[]... arrays)
      Resets the contents of a password array
      Parameters:
      arrays - an array of character arrays to reset