Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Refactor check earlier registration
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
invokermanagementapi
/
typevalidation.go
diff --git
a/capifcore/internal/invokermanagementapi/typevalidation.go
b/capifcore/internal/invokermanagementapi/typevalidation.go
index
be29481
..
8bfb784
100644
(file)
--- a/
capifcore/internal/invokermanagementapi/typevalidation.go
+++ b/
capifcore/internal/invokermanagementapi/typevalidation.go
@@
-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
+}