| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_SSH_VERSION_PREFIX
Default prefix expected for the client / server identification string |
| public static final String | FALLBACK_SSH_VERSION_PREFIX
Backward compatible special prefix |
| public static final int | MAX_VERSION_LINE_LENGTH
Maximum number of characters for any single line sent as part of the initial handshake - according to
RFC 4253 - section 4.2:
|
| Modifier and Type | Method and Description |
|---|---|
| public CipherInformation | getCipherInformation(boolean
If incoming)true then the cipher for the incoming data, otherwise for the outgoing dataRetrieves current cipher information - Note: may change if key re-exchange executed |
| public Map | Returns: An un-modifiable map of the latest KEX client proposal options May be empty if KEX not yet completed or re-keying in progress
|
| public String | Returns: the client version - may benull/empty if versions not yet exchangedRetrieve the client version for this session. |
| public CompressionInformation | getCompressionInformation(boolean
If incoming)true then the compression for the incoming data, otherwise for the outgoing dataRetrieves current compression information - Note: may change if key re-exchange executed |
| public Map | |
| public KexState | |
| public MacInformation | getMacInformation(boolean
If incoming)true then the MAC for the incoming data, otherwise for the outgoing dataRetrieves current MAC information - Note: may change if key re-exchange executed |
| public String | Returns: The negotiated parameter value -null if invalid parameter or no negotiated value.The request paramType)KexProposalOption value - ignored if nullRetrieve one of the negotiated values during the KEX stage |
| public Map | Returns: An un-modifiable map of the latest KEX client proposal options. May be empty if KEX not yet completed or re-keying in progress
|
| public String | Returns: the server version - may benull/empty if versions not yet exchangedRetrieve the server version for this session. |
| public byte[] | |
| public boolean | |
| public static boolean | Returns: true if the context is not null and the MAC(s) used to verify packet integrity
have been established.The session)SessionContext to be examined
|
| public static boolean | Returns: true if the context is not null and the ciphers have been established to anything
other than "none".The session)SessionContext to be examined
|
| public boolean | Returns: true if this is a server sessionQuick indication if this is a server or client session (instead of having to ask |
| public static boolean | |
| public static boolean | Returns: true if version not empty and starts with either SSH-2.0- or
SSH-1.99-The reported client/server version version)
|
| public static long |
| DEFAULT_SSH_VERSION_PREFIX | back to summary |
|---|---|
| public static final String DEFAULT_SSH_VERSION_PREFIX Default prefix expected for the client / server identification string
| |
| FALLBACK_SSH_VERSION_PREFIX | back to summary |
|---|---|
| public static final String FALLBACK_SSH_VERSION_PREFIX Backward compatible special prefix
| |
| MAX_VERSION_LINE_LENGTH | back to summary |
|---|---|
| public static final int MAX_VERSION_LINE_LENGTH Maximum number of characters for any single line sent as part of the initial handshake - according to
RFC 4253 - section 4.2:
| |
| getCipherInformation | back to summary |
|---|---|
| public CipherInformation getCipherInformation(boolean incoming) Retrieves current cipher information - Note: may change if key re-exchange executed
| |
| getClientKexProposals | back to summary |
|---|---|
public Map
| |
| getClientVersion | back to summary |
|---|---|
| public String getClientVersion() Retrieve the client version for this session.
| |
| getCompressionInformation | back to summary |
|---|---|
| public CompressionInformation getCompressionInformation(boolean incoming) Retrieves current compression information - Note: may change if key re-exchange executed
| |
| getKexNegotiationResult | back to summary |
|---|---|
| public Map | |
| getKexState | back to summary |
|---|---|
| public KexState getKexState() | |
| getMacInformation | back to summary |
|---|---|
| public MacInformation getMacInformation(boolean incoming) Retrieves current MAC information - Note: may change if key re-exchange executed
| |
| getNegotiatedKexParameter | back to summary |
|---|---|
| public String getNegotiatedKexParameter(KexProposalOption paramType) Retrieve one of the negotiated values during the KEX stage
| |
| getServerKexProposals | back to summary |
|---|---|
public Map
| |
| getServerVersion | back to summary |
|---|---|
| public String getServerVersion() Retrieve the server version for this session.
| |
| getSessionId | back to summary |
|---|---|
public byte[] getSessionId()
| |
| isAuthenticated | back to summary |
|---|---|
public boolean isAuthenticated()
| |
| isDataIntegrityTransport | back to summary |
|---|---|
public static boolean isDataIntegrityTransport(SessionContext session)
| |
| isSecureSessionTransport | back to summary |
|---|---|
public static boolean isSecureSessionTransport(SessionContext session)
| |
| isServerSession | back to summary |
|---|---|
| public boolean isServerSession() Quick indication if this is a server or client session (instead of having to ask
| |
| isValidSessionPayloadSize | back to summary |
|---|---|
| public static boolean isValidSessionPayloadSize(long value) | |
| isValidVersionPrefix | back to summary |
|---|---|
public static boolean isValidVersionPrefix(String version)
| |
| validateSessionPayloadSize | back to summary |
|---|---|
| public static long validateSessionPayloadSize(long value, String format) | |