edu.nyu.cs.pdsg.drbac
Class SubjectSearchEngine

java.lang.Object
  extended byedu.nyu.cs.pdsg.drbac.SearchEngine
      extended byedu.nyu.cs.pdsg.drbac.SubjectSearchEngine

public class SubjectSearchEngine
extends SearchEngine

Utlitity class: Used to look up credentials on remote hosts


Constructor Summary
(package private) SubjectSearchEngine()
          Initialize the SearchEngine
 
Method Summary
(package private)  void answerRemoteQuery(java.io.InputStream is, java.io.OutputStream os)
          Internal: answer a remote query
protected  Role findSearchableRole(SearchAccumulator subSearchAccum, SearchAccumulator objSearchAccum)
          Only looks at the subSearchAccum, since this implementation of the SearchEngine is doing a sub-towards-obj search
protected  boolean insertNewDelegations(java.util.ArrayList remDelegs, LocalProver prover, LocalProver unusedObjProver)
          Internal: insert remotely -received delegations into the local wallet
protected  java.util.ArrayList queryRemoteWallet(java.net.InetAddress ip, int port, RoleId walletRoleId, LocalProver prover, Role obj, AttributeSet oas)
          Internal: socket-level communication for querying a remote wallet
 
Methods inherited from class edu.nyu.cs.pdsg.drbac.SearchEngine
prove, prove, remSearch, sendDelegationSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectSearchEngine

SubjectSearchEngine()
Initialize the SearchEngine

Method Detail

findSearchableRole

protected Role findSearchableRole(SearchAccumulator subSearchAccum,
                                  SearchAccumulator objSearchAccum)
Only looks at the subSearchAccum, since this implementation of the SearchEngine is doing a sub-towards-obj search

Specified by:
findSearchableRole in class SearchEngine

insertNewDelegations

protected boolean insertNewDelegations(java.util.ArrayList remDelegs,
                                       LocalProver prover,
                                       LocalProver unusedObjProver)
Description copied from class: SearchEngine
Internal: insert remotely -received delegations into the local wallet

Specified by:
insertNewDelegations in class SearchEngine

queryRemoteWallet

protected java.util.ArrayList queryRemoteWallet(java.net.InetAddress ip,
                                                int port,
                                                RoleId walletRoleId,
                                                LocalProver prover,
                                                Role obj,
                                                AttributeSet oas)
                                         throws CredentialException,
                                                java.io.IOException
Internal: socket-level communication for querying a remote wallet

Specified by:
queryRemoteWallet in class SearchEngine
Throws:
CredentialException
java.io.IOException

answerRemoteQuery

void answerRemoteQuery(java.io.InputStream is,
                       java.io.OutputStream os)
Internal: answer a remote query

Specified by:
answerRemoteQuery in class SearchEngine


Copyright (c) 2002-2003 New York University RLAB