From e29ccebc213274943956c4ec45bbbf72e8b953fd Mon Sep 17 00:00:00 2001 From: pskopek Date: Mon, 18 Dec 2017 13:09:10 +0100 Subject: [PATCH] KEYCLOAK-5666 removed not needed decodeToObject methods --- .../java/org/keycloak/common/util/Base64.java | 176 +++++------------- .../org/keycloak/saml/common/util/Base64.java | 42 ----- 2 files changed, 44 insertions(+), 174 deletions(-) diff --git a/common/src/main/java/org/keycloak/common/util/Base64.java b/common/src/main/java/org/keycloak/common/util/Base64.java index f900bf5dd9b..ae1897da331 100644 --- a/common/src/main/java/org/keycloak/common/util/Base64.java +++ b/common/src/main/java/org/keycloak/common/util/Base64.java @@ -10,9 +10,9 @@ package org.keycloak.common.util; *
* byte[] myByteArray = Base64.decode( encoded ); * - *

The options parameter, which appears in a few places, is used to pass - * several pieces of information to the encoder. In the "higher level" methods such as - * encodeBytes( bytes, options ) the options parameter can be used to indicate such + *

The options parameter, which appears in a few places, is used to pass + * several pieces of information to the encoder. In the "higher level" methods such as + * encodeBytes( bytes, options ) the options parameter can be used to indicate such * things as first gzipping the bytes before encoding them, not inserting linefeeds, * and encoding using the URL-safe and Ordered dialects.

* @@ -21,7 +21,7 @@ package org.keycloak.common.util; * to do so. I've got Base64 set to this behavior now, although earlier versions * broke lines by default.

* - *

The constants defined in Base64 can be OR-ed together to combine options, so you + *

The constants defined in Base64 can be OR-ed together to combine options, so you * might make a call like this:

* * String encoded = Base64.encodeBytes( mybytes, Base64.GZIP | Base64.DO_BREAK_LINES ); @@ -68,7 +68,7 @@ package org.keycloak.common.util; *
  • v2.3 - This is not a drop-in replacement! This is two years of comments * and bug fixes queued up and finally executed. Thanks to everyone who sent * me stuff, and I'm sorry I wasn't able to distribute your fixes to everyone else. - * Much bad coding was cleaned up including throwing exceptions where necessary + * Much bad coding was cleaned up including throwing exceptions where necessary * instead of returning null values or something similar. Here are some changes * that may affect you: *