Package com.tangosol.net
Class InputStreamPasswordProvider
java.lang.Object
com.tangosol.net.InputStreamPasswordProvider
- All Implemented Interfaces:
- PasswordProvider
- Direct Known Subclasses:
- URLPasswordProvider
A base class for 
PasswordProvider implementations that read the
 contents of an InputStream to obtain a password.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
- 
Field SummaryFields inherited from interface com.tangosol.net.PasswordProviderNullImplementation
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreate anInputStreamPasswordProvider.protectedInputStreamPasswordProvider(boolean fFirstLineOnly) Create anInputStreamPasswordProvider.
- 
Method SummaryModifier and TypeMethodDescriptionchar[]get()Returns the password to be used in clear format.protected abstract InputStreamReturns theInputStreamto read the password from.booleanReturnstrueto only treat the first line of the data returned by theInputStreamas the password.
- 
Constructor Details- 
InputStreamPasswordProviderprotected InputStreamPasswordProvider()Create anInputStreamPasswordProvider.
- 
InputStreamPasswordProviderprotected InputStreamPasswordProvider(boolean fFirstLineOnly) Create anInputStreamPasswordProvider.- Parameters:
- fFirstLineOnly-- trueto only treat the first line of the data returned by the- InputStreamas the password
 
 
- 
- 
Method Details- 
isFirstLineOnlypublic boolean isFirstLineOnly()Returnstrueto only treat the first line of the data returned by theInputStreamas the password.- Returns:
- trueto only treat the first line of the data returned by the- InputStreamas the password
 
- 
getpublic char[] get()Description copied from interface:PasswordProviderReturns 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.- Specified by:
- getin interface- PasswordProvider
- Returns:
- password as char[]
 
- 
getInputStreamReturns theInputStreamto read the password from.- Returns:
- the InputStreamto read the password from
- Throws:
- IOException- if there is an error opening the- InputStream
 
 
-