Package org.bouncycastle.bcpg.sig

Examples of org.bouncycastle.bcpg.sig.KeyFlags


       case PREFERRED_COMP_ALGS:
       case PREFERRED_HASH_ALGS:
       case PREFERRED_SYM_ALGS:
               return new PreferredAlgorithms(type, isCritical, data);
       case KEY_FLAGS:
               return new KeyFlags(isCritical, data);
       case PRIMARY_USER_ID:
               return new PrimaryUserID(isCritical, data);
       case SIGNER_USER_ID:
           return new SignerUserID(isCritical, data);
       }
View Full Code Here


   
    public void setKeyFlags(
        boolean     isCritical,
        int         flags)
    {
        list.add(new KeyFlags(isCritical, flags));
    }
View Full Code Here

        case PREFERRED_COMP_ALGS:
        case PREFERRED_HASH_ALGS:
        case PREFERRED_SYM_ALGS:
            return new PreferredAlgorithms(type, isCritical, data);
        case KEY_FLAGS:
            return new KeyFlags(isCritical, data);
        case PRIMARY_USER_ID:
            return new PrimaryUserID(isCritical, data);
        case SIGNER_USER_ID:
            return new SignerUserID(isCritical, data);
        case NOTATION_DATA:
View Full Code Here

            algorithms));
    }

    public void setKeyFlags(boolean isCritical, int flags)
    {
        list.add(new KeyFlags(isCritical, flags));
    }
View Full Code Here

        checkValue(new byte[] { 4 }, 0x04);
    }

    private void checkValue(int flag, int value)
    {
        KeyFlags f = new KeyFlags(true, flag);

        if (f.getFlags() != value)
        {
            fail("flag value mismatch");
        }
    }
View Full Code Here

        }
    }

    private void checkValue(byte[] flag, int value)
    {
        KeyFlags f = new KeyFlags(true, flag);

        if (f.getFlags() != value)
        {
            fail("flag value mismatch");
        }
    }
View Full Code Here

   
    public void setKeyFlags(
        boolean     isCritical,
        int         flags)
    {
        list.add(new KeyFlags(isCritical, flags));
    }
View Full Code Here

        checkValue(KeyFlags.SHARED, 0x80);
    }

    private void checkValue(int flag, int value)
    {
        KeyFlags f = new KeyFlags(true, flag);

        if (f.getFlags() != value)
        {
            fail("flag value mismatch");
        }
    }
View Full Code Here

TOP

Related Classes of org.bouncycastle.bcpg.sig.KeyFlags

Copyright © 2018 www.massapicom. 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.