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
ConstructorsModifierConstructorDescriptionprotected
protected
HTTPAuthentication
(String name, char[] password) protected
HTTPAuthentication
(SVNPasswordAuthentication credentials) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
static void
clear
(byte[] array) static void
clear
(char[] array) protected static byte[]
getASCIIBytes
(String data) abstract String
protected static byte[]
protected static byte[]
getChallengeParameter
(String name) char[]
private static String
getSchemeName
(String header) static boolean
isSchemeSupportedByServer
(String scheme, Collection<String> authHeaderValues) static HTTPAuthentication
parseAuthParameters
(Collection<String> authHeaderValues, HTTPAuthentication prevResponse, String charset, Collection<String> authTypes, ISVNAuthenticationManager authManager, int requestID) void
setChallengeParameter
(String name, String value) void
setCredentials
(SVNPasswordAuthentication credentials) void
setPassword
(char[] password) void
setUserName
(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)
-