Class SVNSaslAuthenticator
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
-
- org.tmatesoft.svn.core.internal.io.svn.sasl.SVNSaslAuthenticator
-
public class SVNSaslAuthenticator extends SVNAuthenticator
- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SVNSaslAuthenticator.SVNCallbackHandler
-
Field Summary
Fields Modifier and Type Field Description private SVNAuthentication
myAuthentication
private ISVNAuthenticationManager
myAuthenticationManager
private javax.security.sasl.SaslClient
myClient
-
Fields inherited from class org.tmatesoft.svn.core.internal.io.svn.SVNAuthenticator
FAILURE, STEP, SUCCESS
-
-
Constructor Summary
Constructors Constructor Description SVNSaslAuthenticator(SVNConnection connection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SVNAuthentication
authenticate(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repository)
protected javax.security.sasl.SaslClient
createSaslClient(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repos, SVNURL location)
void
dispose()
private static byte[]
fromBase64(java.lang.String src)
private static java.lang.String
getFullRealmName(SVNURL location, java.lang.String realm)
private static java.lang.String
getMechanismName(javax.security.sasl.SaslClient client, boolean isAnonymous)
private static javax.security.sasl.SaslClientFactory
getSaslClientFactory(java.lang.String mechName, java.util.Map props)
protected void
setEncryption(SVNRepositoryImpl repository)
private static java.lang.String
toBase64(byte[] src)
protected boolean
tryAuthentication(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, setOutputStream
-
-
-
-
Field Detail
-
myClient
private javax.security.sasl.SaslClient myClient
-
myAuthenticationManager
private ISVNAuthenticationManager myAuthenticationManager
-
myAuthentication
private SVNAuthentication myAuthentication
-
-
Constructor Detail
-
SVNSaslAuthenticator
public SVNSaslAuthenticator(SVNConnection connection) throws SVNException
- Throws:
SVNException
-
-
Method Detail
-
authenticate
public SVNAuthentication authenticate(java.util.List mechs, java.lang.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, java.lang.String mechName) throws javax.security.sasl.SaslException, SVNException
- Throws:
javax.security.sasl.SaslException
SVNException
-
setEncryption
protected void setEncryption(SVNRepositoryImpl repository)
-
createSaslClient
protected javax.security.sasl.SaslClient createSaslClient(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repos, SVNURL location) throws SVNException
- Throws:
SVNException
-
getFullRealmName
private static java.lang.String getFullRealmName(SVNURL location, java.lang.String realm)
-
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)
-
-