public class ClientCredentialsValidator extends Object
Constructor and Description |
---|
ClientCredentialsValidator() |
Modifier and Type | Method and Description |
---|---|
static String |
ensureClientId(String str)
Validates the given string to ensure that it only contains valid characters for a client id.
|
static String |
ensureClientSecret(String str)
Validates the given string to ensure that it only contains valid characters for a client secret.
|
@Nullable public static String ensureClientId(@Nullable String str) throws ConstraintViolationException
str
- The string to validate.ConstraintViolationException
- If the given string is not a valid client id.@Nullable public static String ensureClientSecret(@Nullable String str) throws ConstraintViolationException
str
- The string to validate.ConstraintViolationException
- If the given string is not a valid client secret.Copyright © 2020 SAP SE. All rights reserved.