Package sg.dex.starfish
Interface Account
-
- All Known Implementing Classes:
AAccount
,AEVMAccount
,RemoteAccount
,SquidAccount
public interface Account
Interface representing an Account with one or more agents in the Ocean ecosystem- Version:
- 0.5
- Author:
- Tom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
getCredentials()
Gets the credentials stored for this Account.String
getID()
Gets the ID for an Account.
-
-
-
Method Detail
-
getID
String getID()
Gets the ID for an Account.The account identifier used is defined by the agent implementation, however typically this would be a unique user name or ID for this agent.
- Returns:
- Account identifier
-
getCredentials
Map<String,Object> getCredentials()
Gets the credentials stored for this Account.Required credentials are defined by the agent implementation, but would typically include things like user name, password etc.
This map is immutable and can be used by Agent to get the credential
- Returns:
- A credential map for this account
-
-