Package org.bouncycastle.util.encoders.test

Source Code of org.bouncycastle.util.encoders.test.UrlBase64Test

package org.bouncycastle.util.encoders.test;

import org.bouncycastle.util.encoders.UrlBase64Encoder;

public class UrlBase64Test extends AbstractCoderTest
{
    public UrlBase64Test(
        String name)
    {
        super(name);
    }
   
    protected void setUp()
    {
        super.setUp();
        enc = new UrlBase64Encoder();
    }

    protected char paddingChar()
    {
        return '.';
    }

    protected boolean isEncodedChar(char c)
    {
        if (Character.isLetterOrDigit(c))
        {
            return true;
        } else if (c == '-')
        {
            return true;
        } else if (c == '_')
        {
            return true;
        }
        return false;
    }
}
TOP

Related Classes of org.bouncycastle.util.encoders.test.UrlBase64Test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.