Class CredentialsUtils
java.lang.Object
io.jenkins.plugins.armorcode.credentials.CredentialsUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetArmorCodeToken(Run<?, ?> run) Convenience method to get the ArmorCode Token.static StringgetSecretText(Run<?, ?> run, String credentialsId) Retrieves a secret text credential by its ID.static StringGets the ArmorCode token from system credentials.
-
Constructor Details
-
CredentialsUtils
public CredentialsUtils()
-
-
Method Details
-
getSecretText
Retrieves a secret text credential by its ID.- Parameters:
run- the current build run, needed for credentials lookupcredentialsId- the credentials ID as configured in Jenkins Credentials- Returns:
- the secret text or null if not found
-
getArmorCodeToken
Convenience method to get the ArmorCode Token. -
getSystemToken
Gets the ArmorCode token from system credentials. Used for system-level operations like job discovery.
-