We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce70cc commit 91ee550Copy full SHA for 91ee550
webauthn-server-core/src/main/java/com/yubico/webauthn/data/ByteArray.java
@@ -80,7 +80,7 @@ public static ByteArray fromBase64(@NonNull final String base64) {
80
*/
81
@JsonCreator
82
public static ByteArray fromBase64Url(@NonNull final String base64) throws Base64UrlException {
83
- return new ByteArray(base64);
+ return new ByteArray(base64.split("=")[0]);
84
}
85
86
/**
@@ -122,7 +122,7 @@ public String getBase64() {
122
return BASE64_ENCODER.encodeToString(bytes);
123
124
125
- /** @return the content bytes encoded as Base64Url data. */
+ /** @return the content bytes encoded as Base64Url data, without padding. */
126
public String getBase64Url() {
127
return base64;
128
0 commit comments