StringExtensions Class

  • java.lang.Object
    • com.microsoft.aad.adal.StringExtensions

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