intarsys runtime library

de.intarsys.tools.authenticate
Interface IPasswordProvider

All Known Subinterfaces:
IAuthenticationProvider
All Known Implementing Classes:
ConstantPasswordProvider, NullPasswordProvider

public interface IPasswordProvider

A simple interface for a password provider. Implementors can provide passwords from any source, for example a database or a GUI.


Method Summary
 char[] getPassword()
          Returns a password or null to indicate cancellation.
 

Method Detail

getPassword

char[] getPassword()
Returns a password or null to indicate cancellation.

You should be prepared that requesting the password twice will return an empty array or null, as the provider may null out the object for security reasons.

Returns:
a char[] containing the password or null

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.