public class SafePolicyReader extends Object
Modifier and Type | Class and Description |
---|---|
class |
SafePolicyReader.PolicyRecord |
Constructor and Description |
---|
SafePolicyReader() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getUrlsRead() |
SafePolicyReader.PolicyRecord |
readPolicyElement(XMLStreamReader reader,
String baseUrl)
Reads a policy expression from the XML stream.
|
String |
readPolicyReferenceElement(XMLStreamReader reader)
Reads policy reference element
|
static String |
relativeToAbsoluteUrl(String relativeUri,
String baseUri)
Utility method to construct an absolute URL from a relative URI and a base URL.
|
public SafePolicyReader.PolicyRecord readPolicyElement(XMLStreamReader reader, String baseUrl)
reader
- The XMLStreamReader should be in START_ELEMENT state and point to the policy element.baseUrl
- The system id of the document read by the reader.public String readPolicyReferenceElement(XMLStreamReader reader)
reader
- The XMLStreamReader should be in START_ELEMENT state and point to the PolicyReference element.public static String relativeToAbsoluteUrl(String relativeUri, String baseUri)
relativeUri
- The relative URIbaseUri
- The base URLCopyright © 2015 Oracle Corporation. All rights reserved.