Class AbstractAuthentication

    • Constructor Detail

      • AbstractAuthentication

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

      • getType

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

        public getURI()
      • getRealm

        public java.lang.String getRealm()
      • matches

        public boolean matches​(java.lang.String type,
                               java.lang.String realm)
        Description copied from interface: Authentication
        Matches Authentications based on the given parameters
        Specified by:
        matches in interface Authentication
        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
        true if this authentication matches, false otherwise
      • matchesURI

        public static boolean matchesURI​( uri1,