This class provides methods to process a Flow credential object.
External credential support:
PDK can process external credentials internally without any changes in plugin code. In the plugin configuration, external plugin credentials stored in a different project are available by choosing them in the new credential widget.
External credentials are different from runtime credentials in the way of how they are referenced. While the usual credential has a name like
proxy_credential, reference external credentials by its path. For example:
Name credentials using one of the following patterns:
This, by default, is used as the first credential.
This is used as the second credential.
For example, if your use case consists of proxy username and proxy password, name the parameter as
FlowPDF supports both patterns above.
# retrieving parameter of current plugin configuration. # in this case credentals is a parameter named credential. my $cred = $cofigValues->getParameter('credential'); # getting type of credential. It is default, private_key, etc, my $credentialType = $cred->getCredentialType(); my $userName = $cred->getUserName(); my $password = $cred->getSecretValue(); my $credentialName = $cred->getCredentialName();