Class sun.server.http.security.BasicHttpAuthentication
All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.http.security.BasicHttpAuthentication
java.lang.Object
|
+----sun.server.http.security.BasicHttpAuthentication
- public class BasicHttpAuthentication
- extends Object
- implements HttpAuthentication
This is a class that does the basic user/passwd based
authentication for the Basic http protocol.
-
BasicHttpAuthentication(String, HttpSecurityAclInfo)
-
-
authenticate(HttpRequest)
- implement the HttpAuthentication interface using the base64 encoding
scheme.
-
getRealm()
- returns the realm of the authentication.
-
getScheme()
- returns the name of the authentication scheme.
BasicHttpAuthentication
public BasicHttpAuthentication(String realmName,
HttpSecurityAclInfo aclInfo)
getScheme
public String getScheme()
- returns the name of the authentication scheme.
- Returns:
- the scheme used
getRealm
public String getRealm()
- returns the realm of the authentication.
- Returns:
- the realm name
authenticate
public String authenticate(HttpRequest req) throws AuthenticationException
- implement the HttpAuthentication interface using the base64 encoding
scheme.
- Throws: AuthenticationException
- exception
All Packages Class Hierarchy This Package Previous Next Index