GigaSpaces XAP 9.7.2 API

net.jini.constraint
Class ConstraintTrustVerifier

java.lang.Object
  extended by net.jini.constraint.ConstraintTrustVerifier
All Implemented Interfaces:
TrustVerifier

public class ConstraintTrustVerifier
extends Object
implements TrustVerifier

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.

Since:
2.0
Author:
Sun Microsystems, Inc.

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintTrustVerifier

public ConstraintTrustVerifier()
Creates an instance.

Method Detail

isTrustedObject

public boolean isTrustedObject(Object obj,
                               TrustVerifier.Context ctx)
                        throws RemoteException
Returns 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:

Specified by:
isTrustedObject in interface TrustVerifier
Parameters:
obj - the object in which to verify trust
ctx - the trust verifier context, to aid in verification of the specified object and its components
Returns:
true if the specified object is known to be trusted to correctly implement its contract; false otherwise
Throws:
NullPointerException - if any argument is null
RemoteException - if a communication-related exception occurs

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.