Class AbstractAuthentication

    • Constructor Detail

      • AbstractAuthentication

        public AbstractAuthentication​(java.net.URI uri,
                                      java.lang.String realm)
    • Method Detail

      • getType

        public abstract java.lang.String getType()
      • getURI

        public java.net.URI getURI()
      • getRealm

        public java.lang.String getRealm()
      • matches

        public boolean matches​(java.lang.String type,
                               java.net.URI uri,
                               java.lang.String realm)
        Description copied from interface: Authentication
        Matches Authentications based on the given parameters
        Specified by:
        matches in interface Authentication
        Parameters:
        type - the Authentication type such as "Basic" or "Digest"
        uri - the request URI
        realm - the authentication realm as provided in the WWW-Authenticate response header
        Returns:
        true if this authentication matches, false otherwise
      • matchesURI

        public static boolean matchesURI​(java.net.URI uri1,
                                         java.net.URI uri2)