8.6.3 CreateCredential
CreateCredential is used to add a new KeyCredentialConfiguration Object.
This Method shall be called from an encrypted SecureChannel and from a Client that has access to the SecurityAdmin Role (see 8.2).
Signature
CreateCredential (
[in] String Name
[in] String ResourceUri
[in] String ProfileUri
[in] String[] EndpointUrls
[out] NodeId CredentialNodeId
);| Argument | Description |
| Name | This the BrowseName of the new Object. |
| ResourceUri | The ResourceUri uniquely identifies the resource that accepts the KeyCredentials. A valid URI shall be provided. |
| ProfileUri | The specified URI assigned in OPC 10000-7 to the protocol used to communicate with the resource identified by the ResourceUri. A valid URI shall be provided. |
| EndpointUrls | The specifies URLs used by the Server to communicate with the resource identified by the ResourceUri. Valid URLs shall be provided. |
| CredentialNodeId | A unique identifier for the new KeyCredentialConfiguration Object Node. |
Method Result Codes (defined in Call Service)
| Result Code | Description |
| Bad_InvalidArgument | The ResourceUri, ProfileUri, or one or more EndpointUrls are not valid. |
| Bad_UserAccessDenied | The current user does not have the rights required. |
| Bad_SecurityModeInsufficient | The SecureChannel is not encrypted. |
Table 134 specifies the AddressSpace representation for the CreateCredential Method.
| Attribute | Value | ||||
| BrowseName | 0:CreateCredential | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| 0:HasProperty | Variable | 0:InputArguments | Argument[] | 0:PropertyType | Mandatory |
| 0:HasProperty | Variable | 0:OutputArguments | Argument[] | 0:PropertyType | Mandatory |