Class DigestAuthenticator

java.lang.Object
org.infinispan.client.rest.impl.okhttp.auth.AbstractAuthenticator
org.infinispan.client.rest.impl.okhttp.auth.DigestAuthenticator
All Implemented Interfaces:
okhttp3.Authenticator, CachingAuthenticator

public class DigestAuthenticator extends AbstractAuthenticator implements CachingAuthenticator
  • Constructor Details

  • Method Details

    • createCnonce

      public static String createCnonce()
    • authenticate

      public okhttp3.Request authenticate(okhttp3.Route route, okhttp3.Response response) throws IOException
      Specified by:
      authenticate in interface okhttp3.Authenticator
      Throws:
      IOException
    • authenticateWithState

      public okhttp3.Request authenticateWithState(okhttp3.Route route, okhttp3.Request request) throws IOException
      Specified by:
      authenticateWithState in interface CachingAuthenticator
      Throws:
      IOException
    • getCredentialsCharset

      public Charset getCredentialsCharset()
      Returns the charset used for the credentials.
      Returns:
      the credentials charset
    • getAsciiBytes

      public static byte[] getAsciiBytes(String data)