Class DigestAuthenticationUtils

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createAuthenticateHeader​(java.lang.String realm, java.lang.String authMethod, java.lang.String nonce)
      Create authenticate header, containing the realm, nonce, opaque, etc.
      static java.lang.String createCnonce()
      Create cnonce string.
      static java.lang.String createNonce()
      Create nonce string.
      static java.lang.String createOpaque​(java.lang.String domain, java.lang.String nonce)
      Create opaque.
      • Methods inherited from class java.lang.Object

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

      • DigestAuthenticationUtils

        public DigestAuthenticationUtils()
    • Method Detail

      • createNonce

        public static java.lang.String createNonce()
        Create nonce string.
        Returns:
        the nonce
      • createCnonce

        public static java.lang.String createCnonce()
        Create cnonce string.
        Returns:
        the cnonce
      • createOpaque

        public static java.lang.String createOpaque​(java.lang.String domain,
                                                    java.lang.String nonce)
        Create opaque.
        Parameters:
        domain - the domain
        nonce - the nonce
        Returns:
        the opaque
      • createAuthenticateHeader

        public static java.lang.String createAuthenticateHeader​(java.lang.String realm,
                                                                java.lang.String authMethod,
                                                                java.lang.String nonce)
        Create authenticate header, containing the realm, nonce, opaque, etc.
        Parameters:
        realm - the realm
        authMethod - the auth method
        nonce - the nonce
        Returns:
        the header string