| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected PublicKeyIdentity | |
| protected final Deque | |
| protected List | |
| public static final AttributeRepository. | IDENTITY_AGENT
Is set on a |
| protected Iterator | |
| public static final String | |
| public static final AttributeRepository. | USE_DEFAULT_IDENTITIES
Is set on a |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | appendSignature(ClientSession session, String service, String name, String username, String algo, PublicKey key, PublicKey serverKey, Buffer buffer)
|
| protected Iterator | |
| public void | destroy()
Overrides org. Implements org. Called to release any allocated resources |
| protected String | Returns: null or an empty string to skip this key and consider another key, if any, to use for
authentication, or a non-empty signature algorithm name to use for the authentication attempt
using the given identityClientSession trying to authenticateSSH service name service, PublicKeyIdentity PublicKeyIdentity considered to be used for authenticationKeyPair from identitythe key type of keyType)keyPairDetermines a signature algorithm name to use for the authentication request if none could be determined from the installed signature factories. |
| public List | |
| public void | init(ClientSession
The session, String ClientSessionThe requesting service name service)Overrides org. Implements org.
|
| protected boolean | processAuthDataRequest(ClientSession session, String service, Buffer buffer)
Implements abstract org.
|
| protected void | |
| protected PublicKeyIdentity | |
| protected PublicKeyIdentity | resolveAttemptedPublicKeyIdentity(ClientSession session, String service, PublicKeyAuthenticationReporter reporter)
|
| protected boolean | sendAuthDataRequest(ClientSession session, String service)
Implements abstract org.
|
| public void | |
| public void | signalAuthMethodFailure(ClientSession
The session, String ClientSessionThe requesting service name service, boolean true if some partial authentication success so farThe serverMethods, Buffer List of authentication methods that can continueThe buffer)Buffer containing the failure message (after having consumed the relevant data
from it)Overrides default org. Signals reception of |
| public void | signalAuthMethodSuccess(ClientSession
The session, String ClientSessionThe requesting service name service, Buffer The buffer)Buffer containing the success message (after having consumed the relevant data from
it)Overrides default org. Signal reception of |
| chosenAlgorithm | back to summary |
|---|---|
| protected String chosenAlgorithm | |
| current | back to summary |
|---|---|
| protected PublicKeyIdentity current | |
| currentAlgorithms | back to summary |
|---|---|
| protected final Deque<String> currentAlgorithms | |
| factories | back to summary |
|---|---|
| protected List<NamedFactory<Signature>> factories | |
| IDENTITY_AGENT | back to summary |
|---|---|
| public static final AttributeRepository. Is set on a | |
| keys | back to summary |
|---|---|
| protected Iterator<PublicKeyIdentity> keys | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| USE_DEFAULT_IDENTITIES | back to summary |
|---|---|
| public static final AttributeRepository. Is set on a | |
| UserAuthPublicKey | back to summary |
|---|---|
| public UserAuthPublicKey() | |
| UserAuthPublicKey | back to summary |
|---|---|
| public UserAuthPublicKey(List<NamedFactory<Signature>> factories) | |
| appendSignature | back to summary |
|---|---|
| protected byte[] appendSignature(ClientSession session, String service, String name, String username, String algo, PublicKey key, PublicKey serverKey, Buffer buffer) throws Exception | |
| createPublicKeyIterator | back to summary |
|---|---|
| protected Iterator | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides org. Implements org. Doc from org. Called to release any allocated resources
| |
| getDefaultSignatureAlgorithm | back to summary |
|---|---|
| protected String getDefaultSignatureAlgorithm(ClientSession session, String service, PublicKeyIdentity identity, KeyPair keyPair, String keyType) throws Exception Determines a signature algorithm name to use for the authentication request if none could be determined from the
installed signature factories. If a non-
This is mainly intended for use with identities from an SSH agent, where the SSH agent may be able to sign the
request even if there is no appropriate signature factory present in Java. Whether it makes sense to allow this
depends on the application logic and how it handles e.g. SSH config
This default implementation always returns
| |
| getSignatureFactories | back to summary |
|---|---|
| public List Implements org.
| |
| init | back to summary |
|---|---|
| public void init(ClientSession session, String service) throws Exception Overrides org. Implements org.
| |
| processAuthDataRequest | back to summary |
|---|---|
| protected boolean processAuthDataRequest(ClientSession session, String service, Buffer buffer) throws Exception Implements abstract org.
| |
| releaseKeys | back to summary |
|---|---|
| protected void releaseKeys() throws IOException | |
| resolveAttemptedPublicKeyIdentity | back to summary |
|---|---|
| protected PublicKeyIdentity resolveAttemptedPublicKeyIdentity(ClientSession session, String service) throws Exception | |
| resolveAttemptedPublicKeyIdentity | back to summary |
|---|---|
| protected PublicKeyIdentity resolveAttemptedPublicKeyIdentity(ClientSession session, String service, PublicKeyAuthenticationReporter reporter) throws Exception | |
| sendAuthDataRequest | back to summary |
|---|---|
| protected boolean sendAuthDataRequest(ClientSession session, String service) throws Exception Implements abstract org.
| |
| setSignatureFactories | back to summary |
|---|---|
| public void setSignatureFactories(List<NamedFactory<Signature>> factories) Implements org.
| |
| signalAuthMethodFailure | back to summary |
|---|---|
| public void signalAuthMethodFailure(ClientSession session, String service, boolean partial, List<String> serverMethods, Buffer buffer) throws Exception Overrides default org. Doc from org. Signals reception of
| |
| signalAuthMethodSuccess | back to summary |
|---|---|
| public void signalAuthMethodSuccess(ClientSession session, String service, Buffer buffer) throws Exception Overrides default org. Doc from org. Signal reception of
| |