public class SVNSaslAuthenticator extends SVNAuthenticator
| Modifier and Type | Class and Description |
|---|---|
private static class |
SVNSaslAuthenticator.SVNCallbackHandler |
| Modifier and Type | Field and Description |
|---|---|
private SVNAuthentication |
myAuthentication |
private ISVNAuthenticationManager |
myAuthenticationManager |
private javax.security.sasl.SaslClient |
myClient |
FAILURE, STEP, SUCCESS| Constructor and Description |
|---|
SVNSaslAuthenticator(SVNConnection connection) |
| Modifier and Type | Method and 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) |
getConnection, getConnectionInputStream, getConnectionOutputStream, getLastError, getPlainInputStream, getPlainOutputStream, setInputStream, setLastError, setOutputStreamprivate javax.security.sasl.SaslClient myClient
private ISVNAuthenticationManager myAuthenticationManager
private SVNAuthentication myAuthentication
public SVNSaslAuthenticator(SVNConnection connection) throws SVNException
SVNExceptionpublic SVNAuthentication authenticate(java.util.List mechs, java.lang.String realm, SVNRepositoryImpl repository) throws SVNException
authenticate in class SVNAuthenticatorSVNExceptionpublic void dispose()
dispose in class SVNAuthenticatorprotected boolean tryAuthentication(SVNRepositoryImpl repos, java.lang.String mechName) throws javax.security.sasl.SaslException, SVNException
javax.security.sasl.SaslExceptionSVNExceptionprotected void setEncryption(SVNRepositoryImpl repository)
protected javax.security.sasl.SaslClient createSaslClient(java.util.List mechs,
java.lang.String realm,
SVNRepositoryImpl repos,
SVNURL location)
throws SVNException
SVNExceptionprivate static java.lang.String getFullRealmName(SVNURL location, java.lang.String realm)
private static java.lang.String toBase64(byte[] src)
private static byte[] fromBase64(java.lang.String src)
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)