001package com.nimbusds.jose.util; 002 003 004import java.nio.charset.Charset; 005 006 007/** 008 * UTF-8 is the standard charset in JOSE. Works around missing 009 * {@link java.nio.charset.StandardCharsets} in Android below API level 19. 010 */ 011public final class StandardCharset { 012 013 014 /** 015 * UTF-8 016 */ 017 public static final Charset UTF_8 = Charset.forName("UTF-8"); 018 019 020 /** 021 * Prevents public instantiation. 022 */ 023 private StandardCharset() {} 024}