Esempio n. 1
0
 public ConstantAuthorizer(TAAuthorizer.Decision d) {
   _dec = d;
 }
Esempio n. 2
0
 public TATypeAuthorizer(TransportAddress.TAType[] list,
                                  TAAuthorizer.Decision on_match,
                                  TAAuthorizer.Decision on_mismatch) {
   _on_match = on_match;
   _on_mismatch = on_mismatch;
   _match_table = new Dictionary<TransportAddress.TAType, bool>();
   foreach(TransportAddress.TAType tatype in list) {
     _match_table[tatype] = true;
   }
 }