org.keycloak.common.util

## Class Base64Url

- java.lang.Object
- - org.keycloak.common.util.Base64Url

-     public class Base64Url
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Base64Url()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `decode(String s)`
    `static String` | `encode(byte[] bytes)`
    `static String` | `encodeBase64ToBase64Url(String base64)`
    `static String` | `encodeBase64UrlToBase64(String base64Url)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Base64Url

          public Base64Url()

  - ### Method Detail

    - #### encode

          public static String encode(byte[] bytes)

    - #### decode

          public static byte[] decode(String s)

    - #### encodeBase64ToBase64Url

          public static String encodeBase64ToBase64Url(String base64)

      Parameters:
        `base64` - String in base64 encoding
      Returns:
        String in base64Url encoding

    - #### encodeBase64UrlToBase64

          public static String encodeBase64UrlToBase64(String base64Url)

      Parameters:
        `base64Url` - String in base64Url encoding
      Returns:
        String in base64 encoding

Copyright © 2021 JBoss by Red Hat. All rights reserved.