Check if OwnIdentityAttribute can be created
This use case checks whether an OwnIdentityAttribute can be created without actually creating it. If an OwnIdentityAttribute can be created, this can be achieved by executing the Create an OwnIdentityAttribute use case.
Parameters
- The
contentis an IdentityAttribute without theownerproperty, since its value would automatically be set to theaddressof your Identity during the potential creation of the OwnIdentityAttribute.
On Success
- Returns a
resultthat indicates if an OwnIdentityAttribute can be created based on the specifiedcontent. - If the
isSuccessproperty of theresulthas the valuetrue, the OwnIdentityAttribute can currently be created. - If the
isSuccessproperty of theresulthas the valuefalse, the OwnIdentityAttribute cannot currently be created. This may have the following reasons:- The provided
content.value.@typedoes not match one of the allowed IdentityAttribute value types. - Invalid
content.tagswere provided. A tag is invalid if it is neither contained in the AttributeTagCollection for thecontent.value.@typeand starts with the prefixbkb:nor starts with the custom tag prefixx:orX:, the prefixurn:, the prefixlanguage:followed by a valid ISO 639 language code nor the prefixmimetype:followed by a valid MIME type matching the pattern^[a-z-*]+/[a-z-*]+$. - There is already an existing OwnIdentityAttribute whose
succeededByproperty is undefined that has the exact samecontent.value.
- The provided
On Failure
- The parameters are malformed.