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 Summary
ConstructorsConstructorDescriptionServiceCombAuthenticationAdapter(org.apache.servicecomb.service.center.client.ServiceCenterClient serviceCenterClient) -
Method Summary
Modifier and TypeMethodDescriptiongetInstanceId(org.springframework.cloud.client.serviceregistry.Registration registration) getPropertyValue(String serviceId, String instanceId, String propertyName) getPublicKeyFromInstance(String instanceId, String serviceId) getServiceId(org.springframework.cloud.client.serviceregistry.Registration registration) getServiceName(String serviceId) voidsetPublicKey(org.springframework.cloud.client.serviceregistry.Registration registration, String publicKey)
-
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:
getInstanceIdin interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-
getServiceId
public String getServiceId(org.springframework.cloud.client.serviceregistry.Registration registration) - Specified by:
getServiceIdin interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-
setPublicKey
public void setPublicKey(org.springframework.cloud.client.serviceregistry.Registration registration, String publicKey) - Specified by:
setPublicKeyin interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-
getPublicKeyFromInstance
- Specified by:
getPublicKeyFromInstancein interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-
getPropertyValue
- Specified by:
getPropertyValuein interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-
getServiceName
- Specified by:
getServiceNamein interfacecom.huaweicloud.governance.authentication.AuthenticationAdapter
-