Refactor check earlier registration
[nonrtric/plt/sme.git] / capifcore / internal / invokermanagementapi / typevalidation.go
index be29481..8bfb784 100644 (file)
@@ -41,3 +41,7 @@ func (ied *APIInvokerEnrolmentDetails) Validate() error {
 
        return nil
 }
+
+func (ied *APIInvokerEnrolmentDetails) IsOnboarded(otherInvoker APIInvokerEnrolmentDetails) bool {
+       return ied.OnboardingInformation.ApiInvokerPublicKey == otherInvoker.OnboardingInformation.ApiInvokerPublicKey
+}