Module org.eclipse.jgit.ssh.apache
Class SecurityCallback
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.pkcs11.SecurityCallback
- All Implemented Interfaces:
CallbackHandler
A bridge to the JGit
CredentialsProvider.-
Constructor Summary
ConstructorsConstructorDescriptionSecurityCallback(org.eclipse.jgit.transport.URIish uri) Creates a newSecurityCallback. -
Method Summary
Modifier and TypeMethodDescriptionvoidintinit(org.apache.sshd.common.session.SessionContext session) Initializes thisSecurityCallbackfor the given session.booleanpasswordTried(Exception error) Tells thisSecurityCallbackthat an attempt to load something from the key store has been made.
-
Constructor Details
-
SecurityCallback
public SecurityCallback(org.eclipse.jgit.transport.URIish uri) Creates a newSecurityCallback.- Parameters:
uri-URIishidentifying the item the interaction is about
-
-
Method Details
-
init
public int init(org.apache.sshd.common.session.SessionContext session) Initializes thisSecurityCallbackfor the given session.- Parameters:
session-SessionContextof the keystore access- Returns:
- the number of PIN prompts to try to log-in to the token
-
passwordTried
Tells thisSecurityCallbackthat an attempt to load something from the key store has been made.- Parameters:
error- anExceptionthat may have occurred, ornullon success- Returns:
- whether to try once more
- Throws:
IOException- on errorsGeneralSecurityException- on errors
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-