public class ConstraintTrustVerifier extends Object implements TrustVerifier
net.jini.core.constraint
package, and for the
BasicMethodConstraints
, X500Principal
and
KerberosPrincipal
classes. This class is intended to be specified
in a resource to configure the operation of
Security.verifyObjectTrust
.TrustVerifier.Context
Constructor and Description |
---|
ConstraintTrustVerifier()
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 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 any of the following conditions
holds, and returns false
otherwise:
isTrustedObject
method on the specified context
with each principal)
ConstraintAlternatives
and all
of the constraint alternatives in that object are trusted (determined
by calling the isTrustedObject
method on the specified
context with each constraint alternative)
BasicMethodConstraints
and all
the InvocationConstraints
instances in that object are trusted
(determined by calling the isTrustedObject
method on the
specified context with each instance)
InvocationConstraints
and
all of the constraints (both requirements and preferences) in that
object are trusted (determined by calling the
isTrustedObject
method on the specified context with each
constraint)
X500Principal
or
KerberosPrincipal
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.