Modifier and Type | Method and Description |
---|---|
protected void |
AbstractClientSession.receiveKexInit(Map<KexProposalOption,String> proposal,
byte[] seed) |
protected byte[] |
AbstractClientSession.sendKexInit(Map<KexProposalOption,String> proposal) |
Modifier and Type | Field and Description |
---|---|
static Comparator<KexProposalOption> |
KexProposalOption.BY_PROPOSAL_INDEX
Compares values according to
getProposalIndex() |
static Set<KexProposalOption> |
KexProposalOption.CIPHER_PROPOSALS |
static Set<KexProposalOption> |
KexProposalOption.COMPRESSION_PROPOSALS |
static Set<KexProposalOption> |
KexProposalOption.FIRST_KEX_PACKET_GUESS_MATCHES |
static Set<KexProposalOption> |
KexProposalOption.LANGUAGE_PROPOSALS |
static Set<KexProposalOption> |
KexProposalOption.MAC_PROPOSALS |
static List<KexProposalOption> |
KexProposalOption.VALUES
A
List of all the options sorted according to getProposalIndex() |
Modifier and Type | Method and Description |
---|---|
static KexProposalOption |
KexProposalOption.fromName(String n) |
static KexProposalOption |
KexProposalOption.fromProposalIndex(int index) |
static KexProposalOption |
KexProposalOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KexProposalOption[] |
KexProposalOption.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
default void |
KexExtensionHandler.handleKexExtensionNegotiation(Session session,
KexProposalOption option,
String nValue,
Map<KexProposalOption,String> c2sOptions,
String cValue,
Map<KexProposalOption,String> s2cOptions,
String sValue)
Invoked during the KEX negotiation phase to inform about option being negotiated.
|
Modifier and Type | Method and Description |
---|---|
default void |
KexExtensionHandler.handleKexExtensionNegotiation(Session session,
KexProposalOption option,
String nValue,
Map<KexProposalOption,String> c2sOptions,
String cValue,
Map<KexProposalOption,String> s2cOptions,
String sValue)
Invoked during the KEX negotiation phase to inform about option being negotiated.
|
default void |
KexExtensionHandler.handleKexExtensionNegotiation(Session session,
KexProposalOption option,
String nValue,
Map<KexProposalOption,String> c2sOptions,
String cValue,
Map<KexProposalOption,String> s2cOptions,
String sValue)
Invoked during the KEX negotiation phase to inform about option being negotiated.
|
default void |
KexExtensionHandler.handleKexInitProposal(Session session,
boolean initiator,
Map<KexProposalOption,String> proposal)
Invoked when a peer is ready to send the KEX options proposal or has received such a proposal.
|
void |
DefaultServerKexExtensionHandler.handleKexInitProposal(Session session,
boolean initiator,
Map<KexProposalOption,String> proposal) |
Modifier and Type | Method and Description |
---|---|
Map<KexProposalOption,String> |
SessionContext.getClientKexProposals() |
Map<KexProposalOption,String> |
SessionContext.getKexNegotiationResult() |
Map<KexProposalOption,String> |
SessionContext.getServerKexProposals() |
Modifier and Type | Method and Description |
---|---|
String |
SessionContext.getNegotiatedKexParameter(KexProposalOption paramType)
Retrieve one of the negotiated values during the KEX stage
|
default boolean |
SessionDisconnectHandler.handleKexDisconnectReason(Session session,
Map<KexProposalOption,String> c2sOptions,
Map<KexProposalOption,String> s2cOptions,
Map<KexProposalOption,String> negotiatedGuess,
KexProposalOption option)
Invoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g.,
cannot negotiate a value, or RFC 8308 - section
2.2).
|
Modifier and Type | Method and Description |
---|---|
default boolean |
SessionDisconnectHandler.handleKexDisconnectReason(Session session,
Map<KexProposalOption,String> c2sOptions,
Map<KexProposalOption,String> s2cOptions,
Map<KexProposalOption,String> negotiatedGuess,
KexProposalOption option)
Invoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g.,
cannot negotiate a value, or RFC 8308 - section
2.2).
|
default boolean |
SessionDisconnectHandler.handleKexDisconnectReason(Session session,
Map<KexProposalOption,String> c2sOptions,
Map<KexProposalOption,String> s2cOptions,
Map<KexProposalOption,String> negotiatedGuess,
KexProposalOption option)
Invoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g.,
cannot negotiate a value, or RFC 8308 - section
2.2).
|
default boolean |
SessionDisconnectHandler.handleKexDisconnectReason(Session session,
Map<KexProposalOption,String> c2sOptions,
Map<KexProposalOption,String> s2cOptions,
Map<KexProposalOption,String> negotiatedGuess,
KexProposalOption option)
Invoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g.,
cannot negotiate a value, or RFC 8308 - section
2.2).
|
default IoWriteFuture |
ReservedSessionMessagesHandler.sendKexInitRequest(Session session,
Map<KexProposalOption,String> proposal,
Buffer packet)
Invoked before sending the
SSH_MSG_KEXINIT packet |
default void |
SessionListener.sessionNegotiationEnd(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal,
Map<KexProposalOption,String> negotiatedOptions,
Throwable reason)
Signals the end of the negotiation options handling
|
default void |
SessionListener.sessionNegotiationEnd(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal,
Map<KexProposalOption,String> negotiatedOptions,
Throwable reason)
Signals the end of the negotiation options handling
|
default void |
SessionListener.sessionNegotiationEnd(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal,
Map<KexProposalOption,String> negotiatedOptions,
Throwable reason)
Signals the end of the negotiation options handling
|
default void |
SessionListener.sessionNegotiationOptionsCreated(Session session,
Map<KexProposalOption,String> proposal) |
default void |
SessionListener.sessionNegotiationStart(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal)
Signals the start of the negotiation options handling
|
default void |
SessionListener.sessionNegotiationStart(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal)
Signals the start of the negotiation options handling
|
Modifier and Type | Field and Description |
---|---|
protected Map<KexProposalOption,String> |
AbstractSession.clientProposal |
protected Map<KexProposalOption,String> |
SessionHelper.initialKexProposal
Stores the initial KEX proposal after it has been run through the hooks allowing client code to modify it; see
SessionHelper.getKexProposal() . |
protected Map<KexProposalOption,String> |
AbstractSession.negotiationResult |
protected Map<KexProposalOption,String> |
AbstractSession.serverProposal |
protected Map<KexProposalOption,String> |
AbstractSession.unmodClientProposal |
protected Map<KexProposalOption,String> |
AbstractSession.unmodNegotiationResult |
protected Map<KexProposalOption,String> |
AbstractSession.unmodServerProposal |
Modifier and Type | Method and Description |
---|---|
protected Map<KexProposalOption,String> |
SessionHelper.createProposal(String hostKeyTypes)
Create our proposal for SSH negotiation
|
Map<KexProposalOption,String> |
AbstractSession.getClientKexProposals() |
Map<KexProposalOption,String> |
AbstractSession.getKexNegotiationResult() |
protected Map<KexProposalOption,String> |
SessionHelper.getKexProposal()
Retrieves this side's initial proposal for KEX negotiation.
|
Map<KexProposalOption,String> |
AbstractSession.getServerKexProposals() |
protected Map<KexProposalOption,String> |
SessionHelper.mergeProposals(Map<KexProposalOption,String> current,
Map<KexProposalOption,String> proposal) |
protected Map<KexProposalOption,String> |
AbstractSession.negotiate()
Compute the negotiated proposals by merging the client and server proposal.
|
protected Map<KexProposalOption,String> |
AbstractSession.setNegotiationResult(Map<KexProposalOption,String> guess) |
Modifier and Type | Method and Description |
---|---|
protected Map.Entry<String,String> |
AbstractSession.comparePreferredKexProposalOption(KexProposalOption option)
Compares the specified
KexProposalOption option value for client vs. |
String |
AbstractSession.getNegotiatedKexParameter(KexProposalOption paramType) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractServerSession.receiveKexInit(Map<KexProposalOption,String> proposal,
byte[] seed) |
protected byte[] |
AbstractServerSession.sendKexInit(Map<KexProposalOption,String> proposal) |
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.