Class SecretReferenceUtil
java.lang.Object
com.pingidentity.sdk.secretmanager.SecretReferenceUtil
Utility class for secret references used by
SecretManager.- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetSecretId(String secretReference) Parses outsecretIdfromsecretReference.static StringgetSecretManagerId(String secretReference) Parses outsecretManagerIdfromsecretReference.static booleanisSecretReference(String secretReference) Checks whether thesecretReferencehas theSecretManager.SECRET_REFERENCE_PREFIX.static booleanvalidateSecretManagerId(String secretReference) Validates thesecretManagerIddefined in thesecretReference.
-
Method Details
-
getSecretManagerId
Parses outsecretManagerIdfromsecretReference. -
getSecretId
Parses outsecretIdfromsecretReference. -
isSecretReference
Checks whether thesecretReferencehas theSecretManager.SECRET_REFERENCE_PREFIX.- Parameters:
secretReference-Stringin expected formatOBF:MGR:{secretManagerId}:{secretId}- Returns:
trueifsecretReferencehas theSecretManager.SECRET_REFERENCE_PREFIX, otherwisefalse.
-
validateSecretManagerId
Validates thesecretManagerIddefined in thesecretReference.- Parameters:
secretReference-Stringin expected formatOBF:MGR:{secretManagerId}:{secretId}- Returns:
trueifsecretManagerIdis a valid secret manager, otherwisefalse.
-