Class sun.server.http.HttpSecurityAclInfo
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.http.HttpSecurityAclInfo

java.lang.Object
   |
   +----sun.server.http.HttpSecurityAclInfo

public class HttpSecurityAclInfo
extends Object
This class maintains the mapping between requested objects and the authentication/ACL information for the object.

Constructor Index

 o HttpSecurityAclInfo(HttpServer, String)
Create a HttpSecurityAclInfo object which reads the securityConfig file and creates the respective Authorization and ACL objects for each directories, file or servlet protected.

Method Index

 o getAccessConfiguration()
Return the authentication configuration object.
 o getPasswordFile(String)
return the password file for a particular realm.
 o loadAclByName(String, String)
This constructor constructs an ACL from an ACL file whose syntax must conform to the syntax of a properties file.

Constructors

 o HttpSecurityAclInfo
  public HttpSecurityAclInfo(HttpServer server,
                             String fileName)
Create a HttpSecurityAclInfo object which reads the securityConfig file and creates the respective Authorization and ACL objects for each directories, file or servlet protected.
Parameters:
server - the server which this is module is a part of.
fileName - the name of the acl config file
Throws: IOException
if the file cannot be read

Methods

 o getAccessConfiguration
  public AccessConfiguration getAccessConfiguration()
Return the authentication configuration object.
Returns:
the authentication configuration object.
 o getPasswordFile
  public synchronized PasswordFile getPasswordFile(String realm) throws IOException
return the password file for a particular realm.
Parameters:
the - realm for which the password file should be returned.
 o loadAclByName
  public synchronized HttpAclImpl loadAclByName(String realm,
                                                String aclName) throws AccessConfigurationException, IOException
This constructor constructs an ACL from an ACL file whose syntax must conform to the syntax of a properties file. The name of the ACL is the same as the name of the ACL file. Valid values are: +User:=, -User:=, +Group:=, -Group:=, AllowHosts=, the + sign is the default and is optional. It implies positive ACLs the - sign implies negative ACLs. That is the permissions listed are disallowed.
Parameters:
realm - the name of the realm. The acl file is expected to be in /admin/realms//
aclName - the name of the acl. A file by the name ".acl" is expected to be in the /admin/realms// directory
Returns:
the HttpAclImpl object which implements the java.security.acl.Acl interface and a subclass of java.security.acl.AclImpl
Throws: AccessConfigurationException
if the acl file configuration is invalid
Throws: IOException
file cannot be read.

All Packages  Class Hierarchy  This Package  Previous  Next  Index