Package net.i2p.util

Class EepGet.AuthState

  • Enclosing class:
    EepGet

    protected class EepGet.AuthState
    extends Object
    Manage the authentication parameters Ref: RFC 2617 Supports both Basic and Digest, however i2ptunnel HTTP proxy has migrated all previous Basic support to Digest.
    Since:
    0.9.12
    • Constructor Detail

    • Method Detail

      • setAuthChallenge

        public void setAuthChallenge​(String auth)
        May be called multiple times, save the best one
      • generateAuthArgs

        public Map<String,​String> generateAuthArgs​(String method,
                                                         String uri)
                                                  throws IOException
        Generate the digest authentication parameters Ref: RFC 2617
        Throws:
        IOException
        Since:
        0.9.12 modified from I2PTunnelHTTPClientBase.validateDigest()
      • getUsername

        public String getUsername()
        Since:
        0.9.33
      • getPassword

        public String getPassword()
        Since:
        0.9.33