public class NetrcParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NetrcParser.Credentials |
Constructor and Description |
---|
NetrcParser() |
NetrcParser(URL netrcURL) |
Modifier and Type | Method and Description |
---|---|
boolean |
getCredentials(NetrcParser.Credentials credentials)
Obtains the credentials from $HOME/.netrc for the given hostname (and optionally username).
|
NetrcParser.Credentials |
getCredentials(String hostname) |
NetrcParser.Credentials |
getCredentials(String hostname,
String username) |
public NetrcParser()
public NetrcParser(URL netrcURL)
public NetrcParser.Credentials getCredentials(String hostname) throws IOException
IOException
public NetrcParser.Credentials getCredentials(String hostname, String username) throws IOException
IOException
public boolean getCredentials(NetrcParser.Credentials credentials) throws IOException
credentials
- specifies the hostname (and optionally the username)IOException
Copyright © 2014–2022 ImageJ. All rights reserved.