Package net.handle.hdllib
Class SecureResolver
- java.lang.Object
-
- net.handle.hdllib.SecureResolver
-
@Deprecated public class SecureResolver extends java.lang.Object
Deprecated.UseHandleRecordTrustVerifier
and allied classesClass 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 Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ALGORITHM
Deprecated.boolean
ignoreInvalidSignatures
Deprecated.boolean
ignoreUnsignedValues
Deprecated.static byte[]
METADATA_TYPE
Deprecated.boolean
reportMissingValues
Deprecated.static java.lang.String
SIG_ALG_TAGNAME
Deprecated.static java.lang.String
SIG_HANDLE_ATTRIBUTE
Deprecated.static java.lang.String
SIG_TAGNAME
Deprecated.static byte[]
SIGNATURE_TYPE
Deprecated.static java.lang.String
SIGNED_INDEX_TAGNAME
Deprecated.static java.lang.String
SIGNER_HANDLE_ATTRIBUTE
Deprecated.static java.lang.String
SIGNER_INDEX_ATTRIBUTE
Deprecated.boolean
traceMessages
Deprecated.static int
VALUE_DIGEST_OFFSET
Deprecated.static java.lang.String
VALUE_HASH_ELEMENT_NAME
Deprecated.static java.lang.String
VALUE_INDEX_ATTRIBUTE
Deprecated.static java.lang.String
VALUE_MD5HASH_ATTRIBUTE
Deprecated.static java.lang.String
VALUE_SHA1HASH_ATTRIBUTE
Deprecated.
-
Constructor Summary
Constructors Constructor Description SecureResolver()
Deprecated.Construct a SecureResolver using a new instance of the default HandleResolver to process resolution requests.SecureResolver(HandleResolver resolver)
Deprecated.Construct a SecureResolver using the given HandleResolver to process resolution requests.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.security.PublicKey
getTrustedKey(ValueReference valRef)
Deprecated.static void
main(java.lang.String[] argv)
Deprecated.void
printState()
Deprecated.HandleValue[]
resolveHandle(byte[] handle, byte[][] types, int[] indexes)
Deprecated.Resolve the given handle retrieving only the given types and indexes, if any.HandleValue[]
resolveHandle(ResolutionRequest req)
Deprecated.Process the given ResolutionRequest while verifying that any values returned are signed according to the policy of this object.HandleValue[]
secureHandleValues(byte[] handle, HandleValue[] values)
Deprecated.HandleValue[]
secureHandleValues(byte[] handle, HandleValue[] aValues, java.util.Map<ValueReference,java.security.PublicKey> keys)
Deprecated.void
setRootKeysAsTrusted()
Deprecated.void
setTrustedKeys(java.util.Map<ValueReference,java.security.PublicKey> keyIDsMap)
Deprecated.Specify the set of identities that are trusted to verify handle values.void
setTrustNamespaceKeys(boolean trustThem)
Deprecated.Sets whether or not the resolver should trust keys that are provided on prefix handles.static boolean
valueNeedsSignature(HandleValue value)
Deprecated.
-
-
-
Field Detail
-
SIGNED_INDEX_TAGNAME
public static final java.lang.String SIGNED_INDEX_TAGNAME
Deprecated.- See Also:
- Constant Field Values
-
SIG_ALG_TAGNAME
public static final java.lang.String SIG_ALG_TAGNAME
Deprecated.- See Also:
- Constant Field Values
-
SIG_TAGNAME
public static final java.lang.String SIG_TAGNAME
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_ALGORITHM
public static final java.lang.String DEFAULT_ALGORITHM
Deprecated.- See Also:
- Constant Field Values
-
VALUE_HASH_ELEMENT_NAME
public static final java.lang.String VALUE_HASH_ELEMENT_NAME
Deprecated.- See Also:
- Constant Field Values
-
VALUE_INDEX_ATTRIBUTE
public static final java.lang.String VALUE_INDEX_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
SIG_HANDLE_ATTRIBUTE
public static final java.lang.String SIG_HANDLE_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
SIGNER_HANDLE_ATTRIBUTE
public static final java.lang.String SIGNER_HANDLE_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
SIGNER_INDEX_ATTRIBUTE
public static final java.lang.String SIGNER_INDEX_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
VALUE_MD5HASH_ATTRIBUTE
public static final java.lang.String VALUE_MD5HASH_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
VALUE_SHA1HASH_ATTRIBUTE
public static final java.lang.String VALUE_SHA1HASH_ATTRIBUTE
Deprecated.- See Also:
- Constant Field Values
-
VALUE_DIGEST_OFFSET
public static final int VALUE_DIGEST_OFFSET
Deprecated.- See Also:
- Constant Field Values
-
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 Detail
-
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 Detail
-
printState
public void printState()
Deprecated.
-
setRootKeysAsTrusted
public void setRootKeysAsTrusted()
Deprecated.
-
setTrustedKeys
public void setTrustedKeys(java.util.Map<ValueReference,java.security.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 java.security.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 java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
secureHandleValues
public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] aValues, java.util.Map<ValueReference,java.security.PublicKey> keys) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] argv) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
valueNeedsSignature
public static boolean valueNeedsSignature(HandleValue value)
Deprecated.
-
-