Class SecretReferenceUtil
- java.lang.Object
-
- com.pingidentity.sdk.secretmanager.SecretReferenceUtil
-
public class SecretReferenceUtil extends Object
Utility class for secret references used bySecretManager.- Since:
- 11.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
getSecretManagerId
public static String getSecretManagerId(String secretReference)
Parses outsecretManagerIdfromsecretReference.
-
getSecretId
public static String getSecretId(String secretReference)
Parses outsecretIdfromsecretReference.
-
isSecretReference
public static boolean isSecretReference(String secretReference)
Checks whether thesecretReferencehas theSecretManager.SECRET_REFERENCE_PREFIX.- Parameters:
secretReference-Stringin expected formatOBF:MGR:{secretManagerId}:{secretId}- Returns:
trueifsecretReferencehas theSecretManager.SECRET_REFERENCE_PREFIX, otherwisefalse.
-
validateSecretManagerId
public static boolean validateSecretManagerId(String secretReference)
Validates thesecretManagerIddefined in thesecretReference.- Parameters:
secretReference-Stringin expected formatOBF:MGR:{secretManagerId}:{secretId}- Returns:
trueifsecretManagerIdis a valid secret manager, otherwisefalse.
-
-