|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.handle.hdllib.SecureResolver
HandleRecordTrustVerifier
and allied classes
@Deprecated public class SecureResolver
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 | |
---|---|
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 | |
---|---|
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 | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SIGNED_INDEX_TAGNAME
public static final java.lang.String SIG_ALG_TAGNAME
public static final java.lang.String SIG_TAGNAME
public static final java.lang.String DEFAULT_ALGORITHM
public static final java.lang.String VALUE_HASH_ELEMENT_NAME
public static final java.lang.String VALUE_INDEX_ATTRIBUTE
public static final java.lang.String SIG_HANDLE_ATTRIBUTE
public static final java.lang.String SIGNER_HANDLE_ATTRIBUTE
public static final java.lang.String SIGNER_INDEX_ATTRIBUTE
public static final java.lang.String VALUE_MD5HASH_ATTRIBUTE
public static final java.lang.String VALUE_SHA1HASH_ATTRIBUTE
public static final int VALUE_DIGEST_OFFSET
public static final byte[] METADATA_TYPE
public static final byte[] SIGNATURE_TYPE
public boolean ignoreUnsignedValues
public boolean reportMissingValues
public boolean ignoreInvalidSignatures
public boolean traceMessages
Constructor Detail |
---|
public SecureResolver()
public SecureResolver(HandleResolver resolver)
Method Detail |
---|
public void printState()
public void setRootKeysAsTrusted()
public void setTrustedKeys(java.util.Map<ValueReference,java.security.PublicKey> keyIDsMap)
public java.security.PublicKey getTrustedKey(ValueReference valRef)
public void setTrustNamespaceKeys(boolean trustThem)
public HandleValue[] resolveHandle(byte[] handle, byte[][] types, int[] indexes) throws HandleException
HandleException
public HandleValue[] resolveHandle(ResolutionRequest req) throws HandleException
HandleException
public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] values) throws java.lang.Exception
java.lang.Exception
public HandleValue[] secureHandleValues(byte[] handle, HandleValue[] aValues, java.util.Map<ValueReference,java.security.PublicKey> keys) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
public static boolean valueNeedsSignature(HandleValue value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |