public class StringValidator extends Object
Constructor and Description |
---|
StringValidator() |
Modifier and Type | Method and Description |
---|---|
static String |
ensureBase64(String str)
Validates the given string to ensure that it is a base64-encoded string.
|
@Nullable public static String ensureBase64(@Nullable String str) throws ConstraintViolationException
str
- The string to validate.ConstraintViolationException
- If the given string is not a base64-encoded string.Copyright © 2020 SAP SE. All rights reserved.