Class AuthorizationVerifier

java.lang.Object
  |
  +--AuthorizationVerifier

class AuthorizationVerifier
extends java.lang.Object

Verifier for Basic Authorization.


Field Summary
private  java.util.Map auth
           
 
Constructor Summary
AuthorizationVerifier(java.lang.String file)
          Creates a new AuthorizationVerifier from the aut.cfg file passed as parameter.
 
Method Summary
(package private)  boolean authRequired(java.lang.String url)
          Verifies if an URL needs to be authorized for access.
(package private)  boolean passwdVerify(java.lang.String url, java.lang.String passwd)
          Checks for a password.
static void warnAuthRequired(java.io.OutputStream os, java.lang.String realm)
          Sends to the OutputStream an HTTP message which informs that the authentication procedure has failed.
static void warnForbidden(java.io.OutputStream os)
          Sends to the OutputStream an HTML page which informs that the authentication procedure has failed.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

auth

private java.util.Map auth
Constructor Detail

AuthorizationVerifier

public AuthorizationVerifier(java.lang.String file)
Creates a new AuthorizationVerifier from the aut.cfg file passed as parameter.
Method Detail

authRequired

boolean authRequired(java.lang.String url)
Verifies if an URL needs to be authorized for access.

passwdVerify

boolean passwdVerify(java.lang.String url,
                     java.lang.String passwd)
Checks for a password.

warnAuthRequired

public static void warnAuthRequired(java.io.OutputStream os,
                                    java.lang.String realm)
Sends to the OutputStream an HTTP message which informs that the authentication procedure has failed.

warnForbidden

public static void warnForbidden(java.io.OutputStream os)
Sends to the OutputStream an HTML page which informs that the authentication procedure has failed.