Class HTTPNTLMAuthentication

java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.http.HTTPAuthentication
org.tmatesoft.svn.core.internal.io.dav.http.HTTPNTLMAuthentication
Direct Known Subclasses:
HTTPApacheNTLMAuthentication, HTTPNativeNTLMAuthentication

class HTTPNTLMAuthentication extends HTTPAuthentication
Version:
1.3
  • Field Details

  • Constructor Details

    • HTTPNTLMAuthentication

      protected HTTPNTLMAuthentication(String charset)
  • Method Details

    • setType1State

      public void setType1State()
    • setType3State

      public void setType3State()
    • isInType3State

      public boolean isInType3State()
    • initResponse

      private void initResponse(int bufferSize)
    • addByte

      private void addByte(byte b)
    • addBytes

      private void addBytes(byte[] bytes)
    • convertToShortValue

      private byte[] convertToShortValue(int num)
    • getResponse

      private String getResponse()
    • parseChallenge

      public void parseChallenge(String challenge) throws SVNException
      Throws:
      SVNException
    • toInt

      private static int toInt(byte[] num)
    • authenticate

      public String authenticate() throws SVNException
      Specified by:
      authenticate in class HTTPAuthentication
      Throws:
      SVNException
    • getAuthenticationScheme

      public String getAuthenticationScheme()
      Specified by:
      getAuthenticationScheme in class HTTPAuthentication
    • isNative

      public boolean isNative()
    • getUserName

      public String getUserName()
      Overrides:
      getUserName in class HTTPAuthentication
    • getDomain

      public String getDomain()
    • toLong

      private long toLong(byte[] num)
    • isUpperCase

      private boolean isUpperCase()
    • hashPassword

      private byte[] hashPassword(char[] password) throws SVNException
      Throws:
      SVNException
    • calcResp

      private void calcResp(byte[] keys, byte[] results) throws SVNException
      Throws:
      SVNException
    • encrypt

      private byte[] encrypt(byte[] key, byte[] bytes) throws SVNException
      Throws:
      SVNException
    • getCipher

      private Cipher getCipher(byte[] key) throws SVNException
      Throws:
      SVNException
    • setupKey

      private byte[] setupKey(byte[] key56)
    • allowPropmtForCredentials

      public boolean allowPropmtForCredentials()