/** * Create a {@link Policy} in Json format and Base 64 encoded. * * @param policy * The String representation of the {@link Policy} in Json format and encoded into Base 64 * @return The {@link Policy} data */ public static String toBase64EncodedPolicy(Policy policy) { return base64Encode(PolicyUtils.toJson(policy).toJSONString()); }