public class Resolver
extends java.lang.Object
> admin_read="true" admin_write="true" public_read="true" public_write="false" ttl="86400" ttl_type="relative" encoding="text" > http://www.handle.net/
Constructor and Description |
---|
Resolver()
Construct a Resolver object with the default settings
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkAuthentication(AuthenticationInfo authInfo)
Verify that the given authentication object is valid and checks out
when tested via handle resolution.
|
void |
checkConfiguration()
Check if the configuration file has been modified, and if so, reload it
|
java.io.File |
getConfigFile()
Return the file that contains the XML resolver configuration
|
HandleResolver |
getResolver()
Get the underlying resolver being used
|
net.cnri.simplexml.XTag |
getXMLForValue(HandleValue value) |
HandleValue[] |
resolveHandle(java.lang.String handle)
Resolve the given handle
|
HandleValue[] |
resolveHandle(java.lang.String handle,
java.lang.String[] typeList)
Resolve the given handle to its values that have the given types.
|
HandleValue[] |
resolveHandle(java.lang.String handle,
java.lang.String[] typeList,
boolean secure)
Resolve the given handle to its values that have the given types.
|
HandleValue[] |
resolveHandle(java.lang.String handle,
java.lang.String[] typeList,
int[] indexes,
boolean secure)
Resolve the given handle to its values that have the given types or indexes.
|
java.security.PublicKey[] |
resolvePublicKeys(java.lang.String handle) |
void |
setVerifyMessages(boolean verify)
Set whether or not messages sent through this resolver will require digital
signatures on all responses.
|
public java.io.File getConfigFile()
public void checkConfiguration()
public HandleValue[] resolveHandle(java.lang.String handle) throws HandleException
HandleException
public HandleValue[] resolveHandle(java.lang.String handle, java.lang.String[] typeList) throws HandleException
HandleException
public HandleValue[] resolveHandle(java.lang.String handle, java.lang.String[] typeList, boolean secure) throws HandleException
HandleException
public HandleValue[] resolveHandle(java.lang.String handle, java.lang.String[] typeList, int[] indexes, boolean secure) throws HandleException
HandleException
public void setVerifyMessages(boolean verify)
public HandleResolver getResolver()
public java.security.PublicKey[] resolvePublicKeys(java.lang.String handle) throws HandleException
HandleException
public net.cnri.simplexml.XTag getXMLForValue(HandleValue value)
public boolean checkAuthentication(AuthenticationInfo authInfo) throws java.lang.Exception
java.lang.Exception