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.
-
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.
-
getAccessConfiguration()
- Return the authentication configuration object.
-
getPasswordFile(String)
- return the password file for a particular realm.
-
loadAclByName(String, String)
-
This constructor constructs an ACL from an ACL file whose syntax must conform
to the syntax of a properties file.
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
getAccessConfiguration
public AccessConfiguration getAccessConfiguration()
- Return the authentication configuration object.
- Returns:
- the authentication configuration object.
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.
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