Package org.keycloak.common.util
Class PaddingUtils
java.lang.Object
org.keycloak.common.util.PaddingUtils
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PaddingUtils
public PaddingUtils()
-
-
Method Details
-
padding
Applies padding to given string up to specified number of characters. If given string is shorter or same as maxPaddingLength, it will just return the original string. Otherwise it would be padded with "\0" character to have at least "maxPaddingLength" characters- Parameters:
rawString
- raw stringmaxPaddingLength
- max padding length- Returns:
- padded output
-