public class DiscoveryConstraintTrustVerifier extends Object implements TrustVerifier
org.apache.river.discovery
package. This class is intended to be specified in
a resource to configure the operation of Security.verifyObjectTrust
.TrustVerifier.Context
Constructor and Description |
---|
DiscoveryConstraintTrustVerifier()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns
true if the specified object is known to be trusted
to correctly implement its contract; returns false
otherwise. |
public DiscoveryConstraintTrustVerifier()
public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
true
if the specified object is known to be trusted
to correctly implement its contract; returns false
otherwise. Returns true
if the object is an instance of
any of the following classes, and returns false
otherwise:
isTrustedObject
in interface TrustVerifier
obj
- the object in which to verify trustctx
- the trust verifier context, to aid in verification of
the specified object and its componentstrue
if the specified object is known to be
trusted to correctly implement its contract; false
otherwiseNullPointerException
- if any argument is null
RemoteException
- if a communication-related exception occursCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.