Example usage for org.springframework.util Base64Utils decodeFromUrlSafeString

List of usage examples for org.springframework.util Base64Utils decodeFromUrlSafeString

Introduction

In this page you can find the example usage for org.springframework.util Base64Utils decodeFromUrlSafeString.

Prototype

public static byte[] decodeFromUrlSafeString(String src) 

Source Link

Document

Base64-decode the given byte array from an UTF-8 String using the RFC 4648 "URL and Filename Safe Alphabet".

Usage

From source file:org.cloudfoundry.identity.uaa.mock.token.TokenKeyEndpointMockMvcTests.java

private void isUrlSafeBase64(String base64) {
    assertEquals(base64, Base64Utils.encodeToUrlSafeString(Base64Utils.decodeFromUrlSafeString(base64)));
}