Top Description Methods
org.apache.sshd.client.auth.pubkey

public Interface PublicKeyAuthenticationReporter

Imports
java.security.KeyPair, java.util.List, org.apache.sshd.client.session.ClientSession

Provides report about the client side public key authentication progress
Author
Apache MINA SSHD Project
See Also
RFC-4252 section 7

Method Summary

Modifier and TypeMethod and Description
public default void
signalAuthenticationAttempt(ClientSession session, String
The requesting service name
service
,
KeyPair
The KeyPair identity being attempted - Note: for agent based authentications the private key may be null
identity
,
String
The type of signature that is being used
signature
)

Sending the initial request to use public key authentication

public default void
signalAuthenticationExhausted(ClientSession session, String
The requesting service name
service
)

Signals end of public key attempts and optionally switching to other authentication methods

public default void
signalAuthenticationFailure(ClientSession session, String
The requesting service name
service
,
KeyPair
The KeyPair identity being attempted - Note: for agent based authentications the private key may be null
identity
,
boolean
true if some partial authentication success so far
partial
,
List<String>
The List of authentication methods that can continue
serverMethods
)

public default void
signalAuthenticationSuccess(ClientSession session, String
The requesting service name
service
,
KeyPair
The KeyPair identity being attempted - Note: for agent based authentications the private key may be null
identity
)

public default void
signalIdentitySkipped(ClientSession session, String
The requesting service name
service
,
KeyPair
The KeyPair identity being skipped - Note: for agent based authentications the private key may be null
identity
)

A KeyPair is is present, but is not attempted because no signature factory for it could be found.

public default void
signalSignatureAttempt(ClientSession session, String
The requesting service name
service
,
KeyPair
The KeyPair identity being attempted - Note: for agent based authentications the private key may be null
identity
,
String
The type of signature that is being used
signature
,
byte[]
The generated signature data
signed
)

Sending the signed response to the server's challenge

Method Detail

signalAuthenticationAttemptback to summary
public default void signalAuthenticationAttempt(ClientSession session, String service, KeyPair identity, String signature) throws Exception

Sending the initial request to use public key authentication

Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

identity:KeyPair

The KeyPair identity being attempted - Note: for agent based authentications the private key may be null

signature:String

The type of signature that is being used

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationExhaustedback to summary
public default void signalAuthenticationExhausted(ClientSession session, String service) throws Exception

Signals end of public key attempts and optionally switching to other authentication methods

Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationFailureback to summary
public default void signalAuthenticationFailure(ClientSession session, String service, KeyPair identity, boolean partial, List<String> serverMethods) throws Exception
Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

identity:KeyPair

The KeyPair identity being attempted - Note: for agent based authentications the private key may be null

partial:boolean

true if some partial authentication success so far

serverMethods:List<String>

The List of authentication methods that can continue

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalAuthenticationSuccessback to summary
public default void signalAuthenticationSuccess(ClientSession session, String service, KeyPair identity) throws Exception
Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

identity:KeyPair

The KeyPair identity being attempted - Note: for agent based authentications the private key may be null

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalIdentitySkippedback to summary
public default void signalIdentitySkipped(ClientSession session, String service, KeyPair identity) throws Exception

A KeyPair is is present, but is not attempted because no signature factory for it could be found.

Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

identity:KeyPair

The KeyPair identity being skipped - Note: for agent based authentications the private key may be null

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close
signalSignatureAttemptback to summary
public default void signalSignatureAttempt(ClientSession session, String service, KeyPair identity, String signature, byte[] signed) throws Exception

Sending the signed response to the server's challenge

Parameters
session:ClientSession

The ClientSession

service:String

The requesting service name

identity:KeyPair

The KeyPair identity being attempted - Note: for agent based authentications the private key may be null

signature:String

The type of signature that is being used

signed:byte[]

The generated signature data

Exceptions
Exception:
If failed to handle the callback - Note: may cause session close