|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.constraint.ConstraintTrustVerifier
public class ConstraintTrustVerifier
Trust verifier for instances of the constraint classes defined in the
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
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier |
---|
TrustVerifier.Context |
Constructor Summary | |
---|---|
ConstraintTrustVerifier()
Creates an instance. |
Method Summary | |
---|---|
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. |
private static boolean |
trusted(Iterator iter,
TrustVerifier.Context ctx)
Returns true if all elements of the iterator are trusted instances. |
private static boolean |
trusted(Set set,
TrustVerifier.Context ctx)
Returns true if all elements of the set are trusted instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstraintTrustVerifier()
Method Detail |
---|
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 components
true
if the specified object is known to be
trusted to correctly implement its contract; false
otherwise
NullPointerException
- if any argument is null
RemoteException
- if a communication-related exception occursprivate static boolean trusted(Set set, TrustVerifier.Context ctx) throws RemoteException
RemoteException
private static boolean trusted(Iterator iter, TrustVerifier.Context ctx) throws RemoteException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |