microsoft-azure-storage/src/com/microsoft/azure/storage/SharedAccessPolicyHandler.java
public static <T extends SharedAccessPolicy> HashMap<String, T> getAccessIdentifiers(final InputStream stream,
            final Class<T> cls) throws ParserConfigurationException, SAXException, IOException {
        SAXParser saxParser = Utility.getSAXParser();
        SharedAccessPolicyHandler<T> handler = new SharedAccessPolicyHandler<T>(cls);
        saxParser.parse(stream, handler);

        return handler.policies;
    }
public static <T extends SharedAccessPolicy> HashMap<String, T> getAccessIdentifiers(final InputStream stream,
            final Class<T> cls) throws ParserConfigurationException, SAXException, IOException {
        SAXParser saxParser = Utility.getSAXParser();
        SharedAccessPolicyHandler<T> handler = new SharedAccessPolicyHandler<T>(cls);
        saxParser.parse(stream, handler);

        return handler.policies;
    }
RESERVED FOR INTERNAL USE. Gets the HashMap of SharedAccessPolicies from the response.

@param stream
the stream to read from
@param cls
the <code>SharedAccessPolicy</code> class type
@return the HashMap of SharedAccessPolicies from the response
@throws SAXException
@throws ParserConfigurationException
@throws ParseException
if a date is incorrectly encoded in the stream
@throws IOException