Package org.bouncycastle.util.encoders.test

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

package org.bouncycastle.util.encoders.test;

import org.bouncycastle.util.encoders.Base64Encoder;

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

    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.Base64Test

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.