All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.open.jwtdependency.org.bouncycastle.asn1.test.ReasonFlagsTest Maven / Gradle / Ivy

Go to download

This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).

The newest version!
package org.bouncycastle.asn1.test;

import java.io.IOException;

import org.bouncycastle.asn1.x509.ReasonFlags;
import org.bouncycastle.util.test.SimpleTest;

public class ReasonFlagsTest
    extends SimpleTest
{
    public String getName()
    {
        return "ReasonFlags";
    }

    public void performTest()
        throws IOException
    {
        BitStringConstantTester.testFlagValueCorrect(0, ReasonFlags.unused);
        BitStringConstantTester.testFlagValueCorrect(1, ReasonFlags.keyCompromise);
        BitStringConstantTester.testFlagValueCorrect(2, ReasonFlags.cACompromise);
        BitStringConstantTester.testFlagValueCorrect(3, ReasonFlags.affiliationChanged);
        BitStringConstantTester.testFlagValueCorrect(4, ReasonFlags.superseded);
        BitStringConstantTester.testFlagValueCorrect(5, ReasonFlags.cessationOfOperation);
        BitStringConstantTester.testFlagValueCorrect(6, ReasonFlags.certificateHold);
        BitStringConstantTester.testFlagValueCorrect(7, ReasonFlags.privilegeWithdrawn);
        BitStringConstantTester.testFlagValueCorrect(8, ReasonFlags.aACompromise);
    }

    public static void main(
        String[]    args)
    {
        runTest(new ReasonFlagsTest());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy