|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.pl_if.Credentials
public class Credentials
Class holding credentials used both for communication with PLC and for authentication with planetlab hosts.
Constructor Summary | |
---|---|
Credentials(Map<String,String> credentials)
Creates a new Config class from a Map containing the following fields: |
|
Credentials(String username,
String password,
String slice,
String role,
String keyPath,
String keyFilePassword)
|
Method Summary | |
---|---|
boolean |
authenticate(Credentials comp)
Checks username and password |
boolean |
authenticateClearTest(Credentials comp)
|
boolean |
authenticateMD5(Credentials comp)
|
boolean |
equals(Credentials comp)
|
boolean |
equals(Map authMap)
|
boolean |
equals(Object obj)
|
Map |
getAuthMap()
|
String |
getKeyFilePassword()
|
String |
getKeyPath()
returns the full path to the private key used from ssh authentication |
String |
getPassword()
|
String |
getPasswordMD5()
|
Map |
getPLCMap()
|
String |
getRole()
|
String |
getSlice()
|
String |
getUsername()
|
String |
getUsernameMD5()
|
int |
hashCode()
|
boolean |
isIgnoreCerificateErrors()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Credentials(Map<String,String> credentials)
Map
- with credentials used for authentication
credentials{"Username"} The username
credentials{"AuthMethod"} This should always be "password", --to keep it
PLC compadable...
credentials{"AuthString"} The accutual password
credentials{"Slice"} the name of the slice (this is only needed to be
able to know what login-name to use for ssh conenctions
credentials{"Role"} this is needed for PLC communicationpublic Credentials(String username, String password, String slice, String role, String keyPath, String keyFilePassword)
Method Detail |
---|
public boolean authenticate(Credentials comp)
auth
-
public boolean authenticateClearTest(Credentials comp)
public boolean authenticateMD5(Credentials comp)
public boolean equals(Credentials comp)
public boolean equals(Map authMap)
public boolean equals(Object obj)
equals
in class Object
public Map getAuthMap()
public String getKeyFilePassword()
public String getKeyPath()
public String getPassword()
public Map getPLCMap()
public boolean isIgnoreCerificateErrors()
public String getRole()
public String getSlice()
public String getUsername()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String getPasswordMD5()
public String getUsernameMD5()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |