Package org.bouncycastle.bcpg

Examples of org.bouncycastle.bcpg.SignatureSubpacket


        return vals;
    }

    public long getIssuerKeyID()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.ISSUER_KEY_ID);
       
        if (p == null)
        {
            return 0;
        }
View Full Code Here


        return ((IssuerKeyID)p).getKeyID();
    }
   
    public Date getSignatureCreationTime()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.CREATION_TIME);
       
        if (p == null)
        {
            return null;
        }
View Full Code Here

     *
     * @return seconds a signature is valid for.
     */
    public long getSignatureExpirationTime()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.EXPIRE_TIME);
       
        if (p == null)
        {
            return 0;
        }
View Full Code Here

     *
     * @return seconds a key is valid for.
     */
    public long getKeyExpirationTime()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.KEY_EXPIRE_TIME);
       
        if (p == null)
        {
            return 0;
        }
View Full Code Here

        return ((KeyExpirationTime)p).getTime();
    }
   
    public int[] getPreferredHashAlgorithms()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_HASH_ALGS);
       
        if (p == null)
        {
            return null;
        }
View Full Code Here

        return ((PreferredAlgorithms)p).getPreferences();
    }
   
    public int[] getPreferredSymmetricAlgorithms()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_SYM_ALGS);
       
        if (p == null)
        {
            return null;
        }
View Full Code Here

        return ((PreferredAlgorithms)p).getPreferences();
    }
   
    public int[] getPreferredCompressionAlgorithms()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_COMP_ALGS);
       
        if (p == null)
        {
            return null;
        }
View Full Code Here

        return ((PreferredAlgorithms)p).getPreferences();
    }
   
    public int getKeyFlags()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.KEY_FLAGS);
       
        if (p == null)
        {
            return 0;
        }
View Full Code Here

        return ((KeyFlags)p).getFlags();
    }
   
    public String getSignerUserID()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.SIGNER_USER_ID);
       
        if (p == null)
        {
            return null;
        }
View Full Code Here

        return vals;
    }

    public long getIssuerKeyID()
    {
        SignatureSubpacket    p = this.getSubpacket(SignatureSubpacketTags.ISSUER_KEY_ID);
       
        if (p == null)
        {
            return 0;
        }
View Full Code Here

TOP

Related Classes of org.bouncycastle.bcpg.SignatureSubpacket

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.