|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.reggie.ProxyVerifier
final class ProxyVerifier
Trust verifier for smart proxies used by Reggie.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier |
---|
TrustVerifier.Context |
Field Summary | |
---|---|
private ServiceID |
registrarID
The registrar's service ID, used for comparison with registrar service IDs extracted from smart proxies to verify. |
private static long |
serialVersionUID
|
private RemoteMethodControl |
server
Canonical service reference, used for comparison with inner server references extracted from smart proxies to verify. |
Constructor Summary | |
---|---|
ProxyVerifier(Registrar server,
ServiceID registrarID)
Constructs proxy verifier which compares server references extracted from smart proxies with the given canonical server reference, which must implement both RemoteMethodControl and TrustEquivalence. |
Method Summary | |
---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns true if the given object is a trusted proxy, or false otherwise. |
private void |
readObject(ObjectInputStream in)
Reads the default serializable field value for this instance, followed by the registrar's service ID encoded as specified by the ServiceID.writeBytes method. |
private void |
writeObject(ObjectOutputStream out)
Writes the default serializable field value for this instance, followed by the registrar's service ID encoded as specified by the ServiceID.writeBytes method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final RemoteMethodControl server
private transient ServiceID registrarID
Constructor Detail |
---|
ProxyVerifier(Registrar server, ServiceID registrarID)
Method Detail |
---|
public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
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
RemoteException
- if a communication-related exception occursprivate void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |