Class PermissionsXMLParser
- java.lang.Object
-
- com.sun.enterprise.security.permissionsxml.PermissionsXMLParser
-
public class PermissionsXMLParser extends Object
Parser to parsepermissions.xmlpackaged in an EAR or in a standalone module.This class is primarily used via
PermissionsXMLLoader.
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLStreamReaderparserprotected static StringPERMISSIONS_XMLprotected static StringRESTRICTED_PERMISSIONS_XML
-
Constructor Summary
Constructors Constructor Description PermissionsXMLParser(File permissionsXmlFile, PermissionCollection permissionCollectionToBeRestricted)PermissionsXMLParser(InputStream input, PermissionCollection permissionCollectionToBeRestricted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionCollectiongetPermissions()Returns the permissions that have been loaded and parsed from theFileorStreamgiven in the constructor of this class.
-
-
-
Field Detail
-
PERMISSIONS_XML
protected static final String PERMISSIONS_XML
- See Also:
- Constant Field Values
-
RESTRICTED_PERMISSIONS_XML
protected static final String RESTRICTED_PERMISSIONS_XML
- See Also:
- Constant Field Values
-
parser
protected XMLStreamReader parser
-
-
Constructor Detail
-
PermissionsXMLParser
public PermissionsXMLParser(File permissionsXmlFile, PermissionCollection permissionCollectionToBeRestricted) throws XMLStreamException, FileNotFoundException
-
PermissionsXMLParser
public PermissionsXMLParser(InputStream input, PermissionCollection permissionCollectionToBeRestricted) throws XMLStreamException, FileNotFoundException
-
-
Method Detail
-
getPermissions
public PermissionCollection getPermissions()
Returns the permissions that have been loaded and parsed from theFileorStreamgiven in the constructor of this class.- Returns:
- Permissions parsed from input
-
-