Interface ISVNPromptUserPassword
public interface ISVNPromptUserPassword
An interface describing a callback used during authentification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
accept the connection to the server foreverstatic final int
accept the connection to the server one time.static final int
reject the connection to the server -
Method Summary
Modifier and TypeMethodDescriptionaskQuestion
(String realm, String question, boolean showAnswer, boolean maySave) Ask the user a question about authentification the save data check box status will be queried by userAllowedSaveint
askTrustSSLServer
(String info, boolean allowPermanently) If there are problems with the certifcate of the SSL-server, this callback will be used to deside if the connection will be used.boolean
ask the user a yes/no questionretrieve the password entered during the prompt callint
retrieve the SSH port entered during the prompt callretrieve the passphrase for the key file entered during the prompt callretrieve the SSH key file entered during the prompt callretrieve the password for the certifcateretrieve the SSL certificate entered during the prompt callretrieve the username entered during the prompt callboolean
Request the password to be used from the user.boolean
Request the SSH info to be used from the user.boolean
Request the SSL client certificate info to be used from the user.boolean
promptUser
(String realm, String username, boolean maySave) Request the username to be used for SVN operation the save data check box status will be queried by userAllowedSaveboolean
query if the user allowed the saving of the data of the last call
-
Field Details
-
Reject
static final int Rejectreject the connection to the server- See Also:
-
AcceptTemporary
static final int AcceptTemporaryaccept the connection to the server one time.- See Also:
-
AcceptPermanently
static final int AcceptPermanentlyaccept the connection to the server forever- See Also:
-
-
Method Details
-
askYesNo
ask the user a yes/no question- Parameters:
realm
- for which server realm this information is requested.question
- question to be askedyesIsDefault
- if yes should be the default- Returns:
- the answer
-
getUsername
String getUsername()retrieve the username entered during the prompt call- Returns:
- the username
-
getPassword
String getPassword()retrieve the password entered during the prompt call- Returns:
- the password
-
askTrustSSLServer
If there are problems with the certifcate of the SSL-server, this callback will be used to deside if the connection will be used.- Parameters:
info
- the probblems with the certificate.allowPermanently
- if AcceptPermantly is a legal answer- Returns:
- one of Reject/AcceptTemporary/AcceptPermanently
-
prompt
Request the password to be used from the user. the save data check box status will be queried by userAllowedSave- Parameters:
realm
- realm for the usernameusername
- username in the realmmaySave
- should a save data check box be enabled.- Returns:
- password as entered or null if canceled.
-
promptUser
Request the username to be used for SVN operation the save data check box status will be queried by userAllowedSave- Parameters:
realm
- realm for the usernameusername
- username in the realmmaySave
- should a save data check box be enabled.- Returns:
- password as entered or null if canceled.
-
askQuestion
Ask the user a question about authentification the save data check box status will be queried by userAllowedSave- Parameters:
realm
- real of the questionquestion
- text of the questionshowAnswer
- flag if the answer should be displayedmaySave
- should a save data check box be enabled.- Returns:
- answer as entered or null if canceled
-
userAllowedSave
boolean userAllowedSave()query if the user allowed the saving of the data of the last call- Returns:
- was the save data check box checked
-
promptSSH
Request the SSH info to be used from the user. the save data check box status will be queried by userAllowedSave- Parameters:
realm
- realm for the usernameusername
- username in the realmsshPort
- the port number to usemaySave
- should a save data check box be enabled.- Returns:
- true if OK was pressed
-
getSSHPrivateKeyPath
String getSSHPrivateKeyPath()retrieve the SSH key file entered during the prompt call- Returns:
- the key file
-
getSSHPrivateKeyPassphrase
String getSSHPrivateKeyPassphrase()retrieve the passphrase for the key file entered during the prompt call- Returns:
- the passphrase
-
getSSHPort
int getSSHPort()retrieve the SSH port entered during the prompt call- Returns:
- the port number
-
promptSSL
Request the SSL client certificate info to be used from the user. the save data check box status will be queried by userAllowedSave- Parameters:
realm
- realm for the actionmaySave
- should a save data check box be enabled.- Returns:
- true if OK was pressed
-
getSSLClientCertPassword
String getSSLClientCertPassword()retrieve the password for the certifcate- Returns:
- the password
-
getSSLClientCertPath
String getSSLClientCertPath()retrieve the SSL certificate entered during the prompt call- Returns:
- the certificate
-