StringExtensions Class
- java.
lang. Object - com.
microsoft. aad. adal. StringExtensions
- com.
public class StringExtensions
Field Summary
Modifier and Type | Field and Description |
---|---|
final String |
ENCODING_UTF8
The Constant ENCODING_UTF8. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String | createHash(String msg) |
String | encodeBase64URLSafeString(final byte[] bytes) |
boolean |
isNullOrBlank(String param)
checks if string is null or empty. |
Field Details
ENCODING_UTF8
public static final String ENCODING_UTF8= "UTF_8"
The Constant ENCODING_UTF8.
Method Details
createHash
public static String createHash(String msg)
Parameters:
msg
encodeBase64URLSafeString
public static String encodeBase64URLSafeString(final byte[] bytes)
Parameters:
bytes
isNullOrBlank
public static boolean isNullOrBlank(String param)
checks if string is null or empty.
Parameters:
param
- String to check for null or blank
Returns:
boolean if the string was null or blank
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for