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 SVNAuthenticationprivate ISVNAuthenticationManagerprivate javax.security.sasl.SaslClientFields inherited from class org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
FAILURE, STEP, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repository) protected javax.security.sasl.SaslClientcreateSaslClient(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repos, SVNURL location) voiddispose()private static byte[]fromBase64(java.lang.String src) private static java.lang.StringgetFullRealmName(SVNURL location, java.lang.String realm) private static java.lang.StringgetMechanismName(javax.security.sasl.SaslClient client, boolean isAnonymous) private static javax.security.sasl.SaslClientFactorygetSaslClientFactory(java.lang.String mechName, java.util.Map props) protected voidsetEncryption(SVNRepositoryImpl repository) private static java.lang.StringtoBase64(byte[] src) protected booleantryAuthentication(SVNRepositoryImpl repos, java.lang.String mechName) Methods inherited from class org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
getConnection, getConnectionInputStream, getConnectionOutputStream, getLastError, getPlainInputStream, getPlainOutputStream, setInputStream, setLastError, setOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myClient
private javax.security.sasl.SaslClient myClient -
myAuthenticationManager
-
myAuthentication
-
-
Constructor Details
-
SVNSaslAuthenticator
- Throws:
SVNException
-
-
Method Details
-
authenticate
public SVNAuthentication authenticate(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repository) throws SVNException - Specified by:
authenticatein classSVNAuthenticator- Throws:
SVNException
-
dispose
public void dispose()- Overrides:
disposein classSVNAuthenticator
-
tryAuthentication
protected boolean tryAuthentication(SVNRepositoryImpl repos, java.lang.String mechName) throws javax.security.sasl.SaslException, SVNException - Throws:
javax.security.sasl.SaslExceptionSVNException
-
setEncryption
-
createSaslClient
protected javax.security.sasl.SaslClient createSaslClient(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repos, SVNURL location) throws SVNException - Throws:
SVNException
-
getFullRealmName
-
toBase64
private static java.lang.String toBase64(byte[] src) -
fromBase64
private static byte[] fromBase64(java.lang.String src) -
getMechanismName
private static java.lang.String getMechanismName(javax.security.sasl.SaslClient client, boolean isAnonymous) -
getSaslClientFactory
private static javax.security.sasl.SaslClientFactory getSaslClientFactory(java.lang.String mechName, java.util.Map props)
-