public interface Host extends Closeable
Implementation must be immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorized(String user,
String password)
Can this user login in with this credentials?
|
InputStream |
fetch(URI uri)
Find resource and return its input stream.
|
InputStream fetch(URI uri) throws IOException
uri - Name of resourceIOException - If some error with I/O insideboolean authorized(String user, String password) throws IOException
user - User namepassword - PasswordIOException - If some error with I/O insideCopyright © 2012 s3auth.com. All Rights Reserved.