|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.admin.visitor.linux.util.PppAuthSecrets
public class PppAuthSecrets
Defines PAP/CHAP authentication in Linux
Constructor Summary | |
---|---|
PppAuthSecrets(String secretsFilename)
PppAuthSecrets constructor |
Method Summary | |
---|---|
void |
addEntry(String provider,
String client,
String server,
String secret,
String ipAddress)
Add a new entry to the secrets file |
boolean |
checkForEntry(String provider,
String client,
String server,
String secret,
String ipAddress)
Checks to see if an entry is already present |
String |
getSecret(String provider,
String client,
String server,
String ipAddress)
Return the secret as a string, given the other parameters. |
void |
removeEntry(int index)
removed an entry based on an index |
void |
removeEntry(String type,
String value)
Removed an entry based on a 'type' where the type can be either provider, client, server, secret, or ipaddress. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PppAuthSecrets(String secretsFilename)
secretsFilename
- Method Detail |
---|
public void addEntry(String provider, String client, String server, String secret, String ipAddress) throws Exception
provider
- cellular provider for which this secret appliesclient
- client/username for this secretserver
- server ip for which this entry requiressecret
- secret/password for this accountipAddress
- ipaddress for this account
Exception
public void removeEntry(String type, String value) throws Exception
type
- can be either provider, client, server, secret, or ipaddressvalue
- is the value for the given type. For example, if the type is
provider, then the value could be att
Exception
- for indexing problemspublic void removeEntry(int index) throws Exception
index
- the index of the entry to be removed
Exception
- if the index is invalidpublic boolean checkForEntry(String provider, String client, String server, String secret, String ipAddress)
provider
- cellular provider for which this secret appliesclient
- client/username for this secretserver
- server ip for which this entry requiressecret
- secret/password for this accountipAddress
- ipaddress for this account
public String getSecret(String provider, String client, String server, String ipAddress)
provider
- cellular provider for which this secret appliesclient
- client/username for this secretserver
- server ip for which this entry requiresipAddress
- ipaddress for this account
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |