public class FlatFilePeerDAO extends Object implements PeerDAO
Cheezy/temporary implementation that just reads in hard-coded allowed Peers from a flat file on our classpath
We'll want to figure out how to manage allowed-peer relationships in the future. One obvious place is just to store them in the Admiral database that this service already connects to, but that doesn't sit 100% well with me because Admiral owns the Admiral schema and doesn't know/care about this arc-auth service, so it's odd that it'd be handling the migration of a table designed only for this service.
| Constructor and Description |
|---|
FlatFilePeerDAO(InputStream inputStream) |
public FlatFilePeerDAO(InputStream inputStream)
inputStream - An inputs stream holding a bunch of "user=password" key/pairs in Java Properties format. This
constructor will close the InputStream after reading Peers from the stream.public Collection<Peer> findAll()
Copyright © 2015. All rights reserved.