Class SVNSaslAuthenticator
java.lang.Object
org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
org.tmatesoft.svn.core.internal.io.svn.sasl.SVNSaslAuthenticator
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNAuthentication
private ISVNAuthenticationManager
private SaslClient
Fields inherited from class org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
FAILURE, STEP, SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(List mechs, String realm, SVNRepositoryImpl repository) protected SaslClient
createSaslClient
(List mechs, String realm, SVNRepositoryImpl repos, SVNURL location) void
dispose()
private static byte[]
fromBase64
(String src) private static String
getFullRealmName
(SVNURL location, String realm) private static String
getMechanismName
(SaslClient client, boolean isAnonymous) private static SaslClientFactory
getSaslClientFactory
(String mechName, Map props) protected void
setEncryption
(SVNRepositoryImpl repository) private static String
toBase64
(byte[] src) protected boolean
tryAuthentication
(SVNRepositoryImpl repos, String mechName) Methods inherited from class org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
getConnection, getConnectionInputStream, getConnectionOutputStream, getLastError, getPlainInputStream, getPlainOutputStream, setInputStream, setLastError, setOutputStream
-
Field Details
-
myClient
-
myAuthenticationManager
-
myAuthentication
-
-
Constructor Details
-
SVNSaslAuthenticator
- Throws:
SVNException
-
-
Method Details
-
authenticate
public SVNAuthentication authenticate(List mechs, String realm, SVNRepositoryImpl repository) throws SVNException - Specified by:
authenticate
in classSVNAuthenticator
- Throws:
SVNException
-
dispose
public void dispose()- Overrides:
dispose
in classSVNAuthenticator
-
tryAuthentication
protected boolean tryAuthentication(SVNRepositoryImpl repos, String mechName) throws SaslException, SVNException - Throws:
SaslException
SVNException
-
setEncryption
-
createSaslClient
protected SaslClient createSaslClient(List mechs, String realm, SVNRepositoryImpl repos, SVNURL location) throws SVNException - Throws:
SVNException
-
getFullRealmName
-
toBase64
-
fromBase64
-
getMechanismName
-
getSaslClientFactory
-