Package i5.las2peer.api.security
Interface Agent
- All Known Subinterfaces:
AnonymousAgent,GroupAgent,PassphraseAgent,ServiceAgent,UserAgent
- All Known Implementing Classes:
AgentImpl,AnonymousAgentImpl,BotAgent,EthereumAgent,EthereumGroupAgent,GroupAgentImpl,MonitoringAgent,PassphraseAgentImpl,ServiceAgentImpl,TestAgent,UserAgentImpl
public interface Agent
Represents an acting entity in the network.
It can have two states: Locked agents cannot used to perform any actions while unlocked agents are able to do so.
-
Method Summary
Modifier and TypeMethodDescriptionThe agent idbooleanisLocked()Returns whether the agent is locked or not.
-
Method Details
-
getIdentifier
String getIdentifier()The agent id- Returns:
- The agent id.
-
isLocked
boolean isLocked()Returns whether the agent is locked or not.- Returns:
- true if the agent is unlocked.
-