|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.utils.resolver.ResourceResolver
public class ResourceResolver
During reference validation, we have to retrieve resources from somewhere. This is done by retrieving a Resolver. The resolver needs two arguments: The URI in which the link to the new resource is defined and the baseURI of the file/entity in which the URI occurs (the baseURI is the same as the SystemId).
Constructor Summary | |
---|---|
ResourceResolver(ResourceResolverSpi resourceResolver)
Constructor ResourceResolver |
Method Summary | |
---|---|
void |
addProperties(Map<String,String> properties)
Method addProperties |
static ResourceResolver |
getInstance(Attr uriAttr,
String baseURI,
boolean secureValidation)
Method getInstance |
static ResourceResolver |
getInstance(Attr uri,
String baseURI,
List<ResourceResolver> individualResolvers)
Method getInstance |
static ResourceResolver |
getInstance(Attr uri,
String baseURI,
List<ResourceResolver> individualResolvers,
boolean secureValidation)
Method getInstance |
String |
getProperty(String key)
Method getProperty |
String[] |
getPropertyKeys()
Method getPropertyKeys |
static void |
register(Class<? extends ResourceResolverSpi> className,
boolean start)
Registers a ResourceResolverSpi class. |
static void |
register(ResourceResolverSpi resourceResolverSpi,
boolean start)
Registers a ResourceResolverSpi instance. |
static void |
register(String className)
Registers a ResourceResolverSpi class. |
static void |
registerAtStart(String className)
Registers a ResourceResolverSpi class at the beginning of the provider list. |
static void |
registerDefaultResolvers()
This method registers the default resolvers. |
XMLSignatureInput |
resolve(Attr uri,
String baseURI,
boolean secureValidation)
Method resolve |
void |
setProperty(String key,
String value)
Method setProperty |
boolean |
understandsProperty(String propertyToTest)
Method understandsProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceResolver(ResourceResolverSpi resourceResolver)
resourceResolver
- Method Detail |
---|
public static final ResourceResolver getInstance(Attr uriAttr, String baseURI, boolean secureValidation) throws ResourceResolverException
uri
- baseURI
- secureValidation
-
ResourceResolverException
public static ResourceResolver getInstance(Attr uri, String baseURI, List<ResourceResolver> individualResolvers) throws ResourceResolverException
uri
- baseURI
- individualResolvers
-
ResourceResolverException
public static ResourceResolver getInstance(Attr uri, String baseURI, List<ResourceResolver> individualResolvers, boolean secureValidation) throws ResourceResolverException
uri
- baseURI
- individualResolvers
- secureValidation
-
ResourceResolverException
public static void register(String className)
className
- the name of the ResourceResolverSpi class to be registeredpublic static void registerAtStart(String className)
className
- the name of the ResourceResolverSpi class to be registeredpublic static void register(Class<? extends ResourceResolverSpi> className, boolean start)
className
- start
- public static void register(ResourceResolverSpi resourceResolverSpi, boolean start)
resourceResolverSpi
- start
- public static void registerDefaultResolvers()
public XMLSignatureInput resolve(Attr uri, String baseURI, boolean secureValidation) throws ResourceResolverException
uri
- baseURI
-
ResourceResolverException
public void setProperty(String key, String value)
key
- value
- public String getProperty(String key)
key
-
public void addProperties(Map<String,String> properties)
properties
- public String[] getPropertyKeys()
public boolean understandsProperty(String propertyToTest)
propertyToTest
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |