Package org.onebusaway.users.services.validation

Examples of org.onebusaway.users.services.validation.KeyValidationProvider


    return generateKey(_defaultProviderId, value, arguments);
  }

  @Override
  public String generateKey(String providerId, String value, String... arguments) {
    KeyValidationProvider provider = _providers.get(providerId);
    if (provider == null)
      throw new IllegalStateException("no api key validation provider with id="
          + providerId);
    return providerId + "_" + provider.generateKey(value, arguments);
  }
View Full Code Here


    int index = key.indexOf('_');
    if (index == -1)
      return false;
    String providerId = key.substring(0, index);
    String subKey = key.substring(index + 1);
    KeyValidationProvider provider = _providers.get(providerId);
    if (provider == null)
      return false;
    return provider.isValidKey(subKey,arguments);
  }
View Full Code Here

      return info;
    }
     
    String providerId = key.substring(0, index);
    String subKey = key.substring(index + 1);
    KeyValidationProvider provider = _providers.get(providerId);
    if (provider == null) {
      info.put("malformed","true");
      return info;
    }
   
    provider.getKeyInfo(info,subKey,arguments);
   
    return info;
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.users.services.validation.KeyValidationProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.