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
NameThis the BrowseName of the new Object.
ResourceUriThe ResourceUri uniquely identifies the resource that accepts the KeyCredentials. A valid URI shall be provided.
ProfileUriThe 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.
EndpointUrlsThe specifies URLs used by the Server to communicate with the resource identified by the ResourceUri. Valid URLs shall be provided.
CredentialNodeIdA 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_UserAccessDeniedThe current user does not have the rights required.
Bad_SecurityModeInsufficientThe SecureChannel is not encrypted.

Table 134 specifies the AddressSpace representation for the CreateCredential Method.

Table 134 – CreateCredential Method AddressSpace Definition
Attribute Value
BrowseName0:CreateCredential
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArgumentsArgument[] 0:PropertyTypeMandatory
0:HasPropertyVariable0:OutputArgumentsArgument[] 0:PropertyTypeMandatory