Package org.apache.sshd.agent
Interface SshAgent
-
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
- All Known Implementing Classes:
AbstractAgentProxy
,AgentDelegate
,AgentImpl
public interface SshAgent extends Channel
SSH key agent server
-
-
Field Summary
Fields Modifier and Type Field Description static String
SSH_AUTHSOCKET_ENV_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addIdentity(KeyPair key, String comment)
Iterable<? extends Map.Entry<PublicKey,String>>
getIdentities()
void
removeAllIdentities()
void
removeIdentity(PublicKey key)
byte[]
sign(SessionContext session, PublicKey key, byte[] data)
-
-
-
Field Detail
-
SSH_AUTHSOCKET_ENV_NAME
static final String SSH_AUTHSOCKET_ENV_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentities
Iterable<? extends Map.Entry<PublicKey,String>> getIdentities() throws IOException
- Throws:
IOException
-
sign
byte[] sign(SessionContext session, PublicKey key, byte[] data) throws IOException
- Throws:
IOException
-
addIdentity
void addIdentity(KeyPair key, String comment) throws IOException
- Throws:
IOException
-
removeIdentity
void removeIdentity(PublicKey key) throws IOException
- Throws:
IOException
-
removeAllIdentities
void removeAllIdentities() throws IOException
- Throws:
IOException
-
-