Package org.keycloak.models.utils
Class Base32
- java.lang.Object
- 
- org.keycloak.models.utils.Base32
 
- 
 public class Base32 extends Object Base32 - encodes and decodes RFC3548 Base32 (see http://www.faqs.org/rfcs/rfc3548.html )- Author:
- Robert Kaye, Gordon Mohr
 
- 
- 
Constructor SummaryConstructors Constructor Description Base32()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decode(String base32)Decodes the given Base32 String to a raw byte array.static Stringencode(byte[] bytes)Encodes byte array to Base32 String.
 
- 
- 
- 
Method Detail- 
encodepublic static String encode(byte[] bytes) Encodes byte array to Base32 String.- Parameters:
- bytes- Bytes to encode.
- Returns:
- Encoded byte array bytesas a String.
 
 - 
decodepublic static byte[] decode(String base32) Decodes the given Base32 String to a raw byte array.- Parameters:
- base32-
- Returns:
- Decoded base32String as a raw byte array.
 
 
- 
 
-