Package i5.las2peer.api.security
Interface PassphraseAgent
- All Superinterfaces:
Agent
- All Known Subinterfaces:
ServiceAgent
,UserAgent
- All Known Implementing Classes:
BotAgent
,EthereumAgent
,MonitoringAgent
,PassphraseAgentImpl
,ServiceAgentImpl
,UserAgentImpl
Represents an agent that can be unlocked using a passphrase.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Unlocks this agent.void
unlockPrivateKey
(String passphrase) Deprecated.Methods inherited from interface i5.las2peer.api.security.Agent
getIdentifier, isLocked
-
Method Details
-
unlock
Unlocks this agent.- Parameters:
passphrase
- The passphrase to unlock this agent.- Throws:
AgentAccessDeniedException
- If the passphrase is not valid.AgentOperationFailedException
- If the agent's private key can not be deserialized.
-
unlockPrivateKey
@Deprecated void unlockPrivateKey(String passphrase) throws AgentAccessDeniedException, AgentOperationFailedException Deprecated.This is just an alias forunlock(String)
and will be removed in near future. Unlocks this agent.- Parameters:
passphrase
- The passphrase to unlock this agent.- Throws:
AgentAccessDeniedException
- If the passphrase is not valid.AgentOperationFailedException
- If the agent's private key can not be deserialized.
-
unlock(String)
and will be removed in near future.