public class PasswordEncoder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
decode(String s)
Decodes a base 64 String into a String.
|
static String |
encode(String s)
Encodes a String into a base 64 String.
|
public static final String PREFIX
public static String encode(String s)
s
- String to encode.public static String decode(String s) throws IllegalArgumentException
s
- String to decode.IllegalArgumentException
- thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding.Copyright © 2011–2015 Red Hat. All rights reserved.