类 AuthenticationFactory


  • @LimitedPrivate
    @Stable
    public final class AuthenticationFactory
    extends java.lang.Object
    Factory class that allows to create Authentication instances for all the supported authentication methods.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static Authentication create​(java.lang.String authPluginClassName, java.lang.String authParamsString)
      Create an instance of the Authentication object by using the plugin class name.
      static Authentication create​(java.lang.String authPluginClassName, java.util.Map<java.lang.String,​java.lang.String> authParams)
      Create an instance of the Authentication-Plugin.
      static Authentication TLS​(java.lang.String certFilePath, java.lang.String keyFilePath)
      Create an authentication provider for TLS based authentication.
      static Authentication token​(java.lang.String token)
      Create an authentication provider for token based authentication.
      static Authentication token​(java.util.function.Supplier<java.lang.String> tokenSupplier)
      Create an authentication provider for token based authentication.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AuthenticationFactory

        public AuthenticationFactory()
    • 方法详细资料

      • token

        public static Authentication token​(java.lang.String token)
        Create an authentication provider for token based authentication.
        参数:
        token - the client auth token
        返回:
        the Authentication object initialized with the token credentials
      • token

        public static Authentication token​(java.util.function.Supplier<java.lang.String> tokenSupplier)
        Create an authentication provider for token based authentication.
        参数:
        tokenSupplier - a supplier of the client auth token
        返回:
        the Authentication object initialized with the token credentials
      • TLS

        public static Authentication TLS​(java.lang.String certFilePath,
                                         java.lang.String keyFilePath)
        Create an authentication provider for TLS based authentication.
        参数:
        certFilePath - the path to the TLS client public key
        keyFilePath - the path to the TLS client private key
        返回:
        the Authentication object initialized with the TLS credentials