Main Content

Simulink.ProtectedModel.getPublisher

Return information about publisher that signed the protected model

Description

example

[publisher,tf] = Simulink.ProtectedModel.getPublisher(protectedModel)returns the name of the publisher that signedprotectedModeland whether the certificate is verified by a trusted certificate authority. To verify the certificate, the corresponding certificate file must be in your computer's trusted certificate authority store.

Examples

collapse all

Get publisher information for the protected modelsigned_model_name.

Simulink.ProtectedModel.getPublisher('signed_model_name.slxp')

The function returns the name of the publisher that signed the protected model.

Verify the publisher and status of the protected modelsigned_model_name.

[publisher, verified] = Simulink.ProtectedModel.getPublisher('signed_model_name.slxp');

The variablepublisherrepresents the name of the publisher that signed the model.verifiedhas a value of1if the signature is verified by a trusted certificate authority.

Input Arguments

collapse all

Name of the signed protected model, specified as a character vector or a string scalar.

Example:'my_model.slxp'

Output Arguments

collapse all

Name of publisher that signed the protected model, returned as a character vector or string scalar. If the signature is not verified by a trusted certificate authority,publisherreturns empty.

True or false result, returned as a1or0.tfreturns1if the signature on the protected model is verified by a trusted certificate authority.

Introduced in R2020a