This class provides methods to process a Flow credential object.
External credentials support is available automatically.
For the credential widget to have external credential switch, the credential
formElement declaration (parameter declaration in
pluginspec.yaml) must include '<supportsCredentialReference>true</supportsCredentialReference>'.
Credentials should be named 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 proxy_credential .
FlowPDF supports both patterns above.
// Retrieving parameter of current plugin configuration. // In this case credential is a parameter named 'credential'. Credential cred = configValues.getCredential('credential') // Getting type of credential. It is default, private_key, etc, String credentialType = cred.getCredentialType() String userName = cred.getUserName() String password = cred.getSecretValue() String credentialName = cred.getCredentialName()