Class HttpAuthMethod.Digest

    • Constructor Summary

      Constructors 
      Constructor Description
      Digest​(java.lang.String hdr)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void authorize​(java.lang.String username, java.lang.String password)
      Update this method with the given username and password pair.
      (package private) void configureRequest​(HttpConnection conn)
      Update connection properties based on this authentication method.
      private static java.lang.String H​(java.lang.String data)  
      private static java.lang.String KD​(java.lang.String secret, java.lang.String data)  
      private static java.lang.String LHEX​(byte[] bin)  
      private static java.security.MessageDigest newMD5()  
      private static java.util.Map<java.lang.String,​java.lang.String> parse​(java.lang.String auth)  
      private static java.lang.String uri​(java.net.URL u)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PRNG

        private static final java.security.SecureRandom PRNG
      • params

        private final java.util.Map<java.lang.String,​java.lang.String> params
      • requestCount

        private int requestCount
      • user

        private java.lang.String user
      • pass

        private java.lang.String pass
      • LHEX

        private static final char[] LHEX
    • Constructor Detail

      • Digest

        Digest​(java.lang.String hdr)
    • Method Detail

      • authorize

        void authorize​(java.lang.String username,
                       java.lang.String password)
        Description copied from class: HttpAuthMethod
        Update this method with the given username and password pair.
        Specified by:
        authorize in class HttpAuthMethod
      • configureRequest

        void configureRequest​(HttpConnection conn)
                       throws java.io.IOException
        Description copied from class: HttpAuthMethod
        Update connection properties based on this authentication method.
        Specified by:
        configureRequest in class HttpAuthMethod
        Throws:
        java.io.IOException
      • uri

        private static java.lang.String uri​(java.net.URL u)
      • H

        private static java.lang.String H​(java.lang.String data)
      • KD

        private static java.lang.String KD​(java.lang.String secret,
                                           java.lang.String data)
      • newMD5

        private static java.security.MessageDigest newMD5()
      • LHEX

        private static java.lang.String LHEX​(byte[] bin)
      • parse

        private static java.util.Map<java.lang.String,​java.lang.String> parse​(java.lang.String auth)