|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.AuthenticationSystem
public class AuthenticationSystem
An authentication system. It is responsible for using a series of authentication contexts to set the data of a group of data holders. Roughly speaking, for each holder and context pair, a setter is responsible for determining whether the context can (or should) supply the holder's data. This conceptual design does not directly translate to the class API; instead, expected usage takes the following form:
setValues() is called, the system dynamically
determines its set of holders by retrieving the union of all
holders from all setters from all its contexts.
| Constructor Summary | |
|---|---|
AuthenticationSystem()
Creates a new authentication system. |
|
| Method Summary | |
|---|---|
void |
add(Context<?> context)
Adds the given context to the receiver's contexts. |
void |
printUsage(PrintStream stream)
Prints the receiver's usage instructions onto the given stream. |
boolean |
setValues()
Sets the data of the receiver's holders. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationSystem()
| Method Detail |
|---|
public void add(Context<?> context)
context - The context.public void printUsage(PrintStream stream)
stream - The stream.public boolean setValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||