Class HTTPAuthentication
java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.http.HTTPAuthentication
- Direct Known Subclasses:
HTTPBasicAuthentication,HTTPDigestAuthentication,HTTPNegotiateAuthentication,HTTPNTLMAuthentication
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedHTTPAuthentication(String name, char[] password) protectedHTTPAuthentication(SVNPasswordAuthentication credentials) -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringstatic voidclear(byte[] array) static voidclear(char[] array) protected static byte[]getASCIIBytes(String data) abstract Stringprotected static byte[]protected static byte[]getChallengeParameter(String name) char[]private static StringgetSchemeName(String header) static booleanisSchemeSupportedByServer(String scheme, Collection<String> authHeaderValues) static HTTPAuthenticationparseAuthParameters(Collection<String> authHeaderValues, HTTPAuthentication prevResponse, String charset, Collection<String> authTypes, ISVNAuthenticationManager authManager, int requestID) voidsetChallengeParameter(String name, String value) voidsetCredentials(SVNPasswordAuthentication credentials) voidsetPassword(char[] password) voidsetUserName(String name) private static Collection<String>sortSchemes(Collection<String> authHeaders, Collection<String> authTypes)
-
Field Details
-
myChallengeParameters
-
myUserName
-
myPassword
private char[] myPassword -
AUTH_METHODS_PROPERTY
- See Also:
-
OLD_AUTH_METHODS_PROPERTY
- See Also:
-
-
Constructor Details
-
HTTPAuthentication
-
HTTPAuthentication
-
HTTPAuthentication
protected HTTPAuthentication()
-
-
Method Details
-
setChallengeParameter
-
getChallengeParameter
-
getChallengeParameters
-
setCredentials
-
getRawUserName
-
getUserName
-
getPassword
public char[] getPassword() -
setUserName
-
setPassword
public void setPassword(char[] password) -
parseAuthParameters
public static HTTPAuthentication parseAuthParameters(Collection<String> authHeaderValues, HTTPAuthentication prevResponse, String charset, Collection<String> authTypes, ISVNAuthenticationManager authManager, int requestID) throws SVNException - Throws:
SVNException
-
isSchemeSupportedByServer
public static boolean isSchemeSupportedByServer(String scheme, Collection<String> authHeaderValues) throws SVNException - Throws:
SVNException
-
sortSchemes
private static Collection<String> sortSchemes(Collection<String> authHeaders, Collection<String> authTypes) -
getSchemeName
-
getAuthenticationScheme
-
authenticate
- Throws:
SVNException
-
getASCIIBytes
-
getBytes
-
getBytes
-
clear
public static void clear(byte[] array) -
clear
public static void clear(char[] array)
-