Package net.handle.hdllib
Class SecureResolver
java.lang.Object
net.handle.hdllib.SecureResolver
Deprecated.
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.boolean
Deprecated.boolean
Deprecated.static final byte[]
Deprecated.boolean
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.boolean
Deprecated.static final int
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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
Modifier and TypeMethodDescriptiongetTrustedKey
(ValueReference valRef) Deprecated.static void
Deprecated.void
Deprecated.resolveHandle
(byte[] handle, byte[][] types, int[] indexes) Deprecated.Resolve the given handle retrieving only the given types and indexes, if any.Deprecated.Process the given ResolutionRequest while verifying that any values returned are signed according to the policy of this object.secureHandleValues
(byte[] handle, HandleValue[] values) Deprecated.secureHandleValues
(byte[] handle, HandleValue[] aValues, Map<ValueReference, PublicKey> keys) Deprecated.void
Deprecated.void
setTrustedKeys
(Map<ValueReference, 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 Details
-
SIGNED_INDEX_TAGNAME
Deprecated.- See Also:
-
SIG_ALG_TAGNAME
Deprecated.- See Also:
-
SIG_TAGNAME
Deprecated.- See Also:
-
DEFAULT_ALGORITHM
Deprecated.- See Also:
-
VALUE_HASH_ELEMENT_NAME
Deprecated.- See Also:
-
VALUE_INDEX_ATTRIBUTE
Deprecated.- See Also:
-
SIG_HANDLE_ATTRIBUTE
Deprecated.- See Also:
-
SIGNER_HANDLE_ATTRIBUTE
Deprecated.- See Also:
-
SIGNER_INDEX_ATTRIBUTE
Deprecated.- See Also:
-
VALUE_MD5HASH_ATTRIBUTE
Deprecated.- See Also:
-
VALUE_SHA1HASH_ATTRIBUTE
Deprecated.- See Also:
-
VALUE_DIGEST_OFFSET
public static final int VALUE_DIGEST_OFFSETDeprecated.- See Also:
-
METADATA_TYPE
public static final byte[] METADATA_TYPEDeprecated. -
SIGNATURE_TYPE
public static final byte[] SIGNATURE_TYPEDeprecated. -
ignoreUnsignedValues
public boolean ignoreUnsignedValuesDeprecated. -
reportMissingValues
public boolean reportMissingValuesDeprecated. -
ignoreInvalidSignatures
public boolean ignoreInvalidSignaturesDeprecated. -
traceMessages
public boolean traceMessagesDeprecated.
-
-
Constructor Details
-
SecureResolver
public SecureResolver()Deprecated.Construct a SecureResolver using a new instance of the default HandleResolver to process resolution requests. -
SecureResolver
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
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
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
Deprecated.Process the given ResolutionRequest while verifying that any values returned are signed according to the policy of this object.- Throws:
HandleException
-
secureHandleValues
Deprecated.- Throws:
Exception
-
secureHandleValues
public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] aValues, Map<ValueReference, PublicKey> keys) throws ExceptionDeprecated.- Throws:
Exception
-
main
Deprecated.- Throws:
Exception
-
valueNeedsSignature
Deprecated.
-
HandleRecordTrustVerifier
and allied classes