Class KeyFlags


public class KeyFlags extends SignatureSubpacket
Signature Subpacket encoding the capabilities / intended uses of a key.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    This key may be used for authentication.
    static final int
    This key may be used to make User ID certifications (signature type IDs 0x10-0x13) or direct key signatures (signature type ID 0x1F) over other peoples keys.
    static final int
    This key may be used to encrypt communications.
    static final int
    This key may be used to encrypt storage.
    static final int
    The private component of this key may be in the possession of more than one person.
    static final int
    This key may be used to sign data.
    static final int
    The private component of this key may have been split by a secret-sharing mechanism.

    Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket

    data
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyFlags(boolean critical, boolean isLongLength, byte[] data)
     
    KeyFlags(boolean critical, int flags)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the flag values contained in the first 4 octets (note: at the moment the standard only uses the first one).

    Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket

    encode, equals, getData, getType, hashCode, isCritical, isLongLength

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CERTIFY_OTHER

      public static final int CERTIFY_OTHER
      This key may be used to make User ID certifications (signature type IDs 0x10-0x13) or direct key signatures (signature type ID 0x1F) over other peoples keys.
      See Also:
    • SIGN_DATA

      public static final int SIGN_DATA
      This key may be used to sign data.
      See Also:
    • ENCRYPT_COMMS

      public static final int ENCRYPT_COMMS
      This key may be used to encrypt communications.
      See Also:
    • ENCRYPT_STORAGE

      public static final int ENCRYPT_STORAGE
      This key may be used to encrypt storage.
      See Also:
    • SPLIT

      public static final int SPLIT
      The private component of this key may have been split by a secret-sharing mechanism.
      See Also:
    • AUTHENTICATION

      public static final int AUTHENTICATION
      This key may be used for authentication.
      See Also:
    • SHARED

      public static final int SHARED
      The private component of this key may be in the possession of more than one person.
      See Also:
  • Constructor Details

    • KeyFlags

      public KeyFlags(boolean critical, boolean isLongLength, byte[] data)
    • KeyFlags

      public KeyFlags(boolean critical, int flags)
  • Method Details

    • getFlags

      public int getFlags()
      Return the flag values contained in the first 4 octets (note: at the moment the standard only uses the first one).
      Returns:
      flag values.