Class ServiceCombAuthenticationAdapter

java.lang.Object
com.huaweicloud.servicecomb.discovery.authentication.ServiceCombAuthenticationAdapter
All Implemented Interfaces:
com.huaweicloud.governance.authentication.AuthenticationAdapter

public class ServiceCombAuthenticationAdapter extends Object implements com.huaweicloud.governance.authentication.AuthenticationAdapter
  • Constructor Details

    • ServiceCombAuthenticationAdapter

      public ServiceCombAuthenticationAdapter(org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient)
  • Method Details

    • getInstanceId

      public String getInstanceId(org.springframework.cloud.client.serviceregistry.Registration registration)
      Specified by:
      getInstanceId in interface com.huaweicloud.governance.authentication.AuthenticationAdapter
    • getServiceId

      public String getServiceId(org.springframework.cloud.client.serviceregistry.Registration registration)
      Specified by:
      getServiceId in interface com.huaweicloud.governance.authentication.AuthenticationAdapter
    • setPublicKey

      public void setPublicKey(org.springframework.cloud.client.serviceregistry.Registration registration, String publicKey)
      Specified by:
      setPublicKey in interface com.huaweicloud.governance.authentication.AuthenticationAdapter
    • getPublicKeyFromInstance

      public String getPublicKeyFromInstance(String instanceId, String serviceId)
      Specified by:
      getPublicKeyFromInstance in interface com.huaweicloud.governance.authentication.AuthenticationAdapter
    • getPropertyValue

      public String getPropertyValue(String serviceId, String instanceId, String propertyName)
      Specified by:
      getPropertyValue in interface com.huaweicloud.governance.authentication.AuthenticationAdapter
    • getServiceName

      public String getServiceName(String serviceId)
      Specified by:
      getServiceName in interface com.huaweicloud.governance.authentication.AuthenticationAdapter