Class SecureResolver

java.lang.Object
net.handle.hdllib.SecureResolver

@Deprecated public class SecureResolver extends Object
Deprecated.
Use HandleRecordTrustVerifier and allied classes
Class that resolves handles while verifying digital signatures on those values. This provides a higher level of security because handle values can be signed by private keys that are kept offline instead of on a handle server.
  • Field Details

    • SIGNED_INDEX_TAGNAME

      public static final String SIGNED_INDEX_TAGNAME
      Deprecated.
      See Also:
    • SIG_ALG_TAGNAME

      public static final String SIG_ALG_TAGNAME
      Deprecated.
      See Also:
    • SIG_TAGNAME

      public static final String SIG_TAGNAME
      Deprecated.
      See Also:
    • DEFAULT_ALGORITHM

      public static final String DEFAULT_ALGORITHM
      Deprecated.
      See Also:
    • VALUE_HASH_ELEMENT_NAME

      public static final String VALUE_HASH_ELEMENT_NAME
      Deprecated.
      See Also:
    • VALUE_INDEX_ATTRIBUTE

      public static final String VALUE_INDEX_ATTRIBUTE
      Deprecated.
      See Also:
    • SIG_HANDLE_ATTRIBUTE

      public static final String SIG_HANDLE_ATTRIBUTE
      Deprecated.
      See Also:
    • SIGNER_HANDLE_ATTRIBUTE

      public static final String SIGNER_HANDLE_ATTRIBUTE
      Deprecated.
      See Also:
    • SIGNER_INDEX_ATTRIBUTE

      public static final String SIGNER_INDEX_ATTRIBUTE
      Deprecated.
      See Also:
    • VALUE_MD5HASH_ATTRIBUTE

      public static final String VALUE_MD5HASH_ATTRIBUTE
      Deprecated.
      See Also:
    • VALUE_SHA1HASH_ATTRIBUTE

      public static final String VALUE_SHA1HASH_ATTRIBUTE
      Deprecated.
      See Also:
    • VALUE_DIGEST_OFFSET

      public static final int VALUE_DIGEST_OFFSET
      Deprecated.
      See Also:
    • METADATA_TYPE

      public static final byte[] METADATA_TYPE
      Deprecated.
    • SIGNATURE_TYPE

      public static final byte[] SIGNATURE_TYPE
      Deprecated.
    • ignoreUnsignedValues

      public boolean ignoreUnsignedValues
      Deprecated.
    • reportMissingValues

      public boolean reportMissingValues
      Deprecated.
    • ignoreInvalidSignatures

      public boolean ignoreInvalidSignatures
      Deprecated.
    • traceMessages

      public boolean traceMessages
      Deprecated.
  • Constructor Details

    • SecureResolver

      public SecureResolver()
      Deprecated.
      Construct a SecureResolver using a new instance of the default HandleResolver to process resolution requests.
    • SecureResolver

      public SecureResolver(HandleResolver resolver)
      Deprecated.
      Construct a SecureResolver using the given HandleResolver to process resolution requests.
  • Method Details

    • printState

      public void printState()
      Deprecated.
    • setRootKeysAsTrusted

      public void setRootKeysAsTrusted()
      Deprecated.
    • setTrustedKeys

      public void setTrustedKeys(Map<ValueReference,PublicKey> keyIDsMap)
      Deprecated.
      Specify the set of identities that are trusted to verify handle values. The given map will include the trusted identifiers as the keys and their associated public keys as the values.
    • getTrustedKey

      public PublicKey getTrustedKey(ValueReference valRef)
      Deprecated.
    • setTrustNamespaceKeys

      public void setTrustNamespaceKeys(boolean trustThem)
      Deprecated.
      Sets whether or not the resolver should trust keys that are provided on prefix handles. These prefixes handle records themselves must themselves be signed by the root keys. Any levels of indirection that might occur can also be accompanied by another level of keys to which trust can be delegated.
    • resolveHandle

      public HandleValue[] resolveHandle(byte[] handle, byte[][] types, int[] indexes) throws HandleException
      Deprecated.
      Resolve the given handle retrieving only the given types and indexes, if any. This will verify that any values returned are signed according to the policy of this object.
      Throws:
      HandleException
    • resolveHandle

      public HandleValue[] resolveHandle(ResolutionRequest req) throws HandleException
      Deprecated.
      Process the given ResolutionRequest while verifying that any values returned are signed according to the policy of this object.
      Throws:
      HandleException
    • secureHandleValues

      public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] values) throws Exception
      Deprecated.
      Throws:
      Exception
    • secureHandleValues

      public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] aValues, Map<ValueReference,PublicKey> keys) throws Exception
      Deprecated.
      Throws:
      Exception
    • main

      public static void main(String[] argv) throws Exception
      Deprecated.
      Throws:
      Exception
    • valueNeedsSignature

      public static boolean valueNeedsSignature(HandleValue value)
      Deprecated.