Class DatarouterAccountApiKeyPredicate

java.lang.Object
io.datarouter.auth.service.DatarouterAccountApiKeyPredicate
All Implemented Interfaces:
io.datarouter.web.dispatcher.ApiKeyPredicate

@Singleton
public class DatarouterAccountApiKeyPredicate
extends java.lang.Object
implements io.datarouter.web.dispatcher.ApiKeyPredicate
  • Constructor Summary

    Constructors 
    Constructor Description
    DatarouterAccountApiKeyPredicate​(DatarouterAccountCredentialService datarouterAccountApiKeyService, DatarouterAccountCounters datarouterAccountCounters)  
  • Method Summary

    Modifier and Type Method Description
    io.datarouter.util.tuple.Pair<java.lang.Boolean,​java.lang.String> check​(io.datarouter.web.dispatcher.DispatchRule rule, javax.servlet.http.HttpServletRequest request)  
    java.util.Optional<java.lang.String> check​(java.util.Optional<java.lang.String> endpoint, java.lang.String apiKeyCandidate)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • check

      public io.datarouter.util.tuple.Pair<java.lang.Boolean,​java.lang.String> check​(io.datarouter.web.dispatcher.DispatchRule rule, javax.servlet.http.HttpServletRequest request)
      Specified by:
      check in interface io.datarouter.web.dispatcher.ApiKeyPredicate
    • check

      public java.util.Optional<java.lang.String> check​(java.util.Optional<java.lang.String> endpoint, java.lang.String apiKeyCandidate)