Package org.bouncycastle.bcpg.sig
Class KeyFlags
- java.lang.Object
-
- org.bouncycastle.bcpg.SignatureSubpacket
-
- org.bouncycastle.bcpg.sig.KeyFlags
-
public class KeyFlags extends SignatureSubpacket
Signature Subpacket encoding the capabilities / intended uses of a key.- See Also:
- RFC4880 - Key Flags, RFC9580 - Key Flags
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTHENTICATION
This key may be used for authentication.static 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.static int
ENCRYPT_COMMS
This key may be used to encrypt communications.static int
ENCRYPT_STORAGE
This key may be used to encrypt storage.static int
SHARED
The private component of this key may be in the possession of more than one person.static int
SIGN_DATA
This key may be used to sign data.static int
SPLIT
The private component of this key may have been split by a secret-sharing mechanism.-
Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFlags()
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
-
-
-
-
Field Detail
-
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:
- Constant Field Values
-
SIGN_DATA
public static final int SIGN_DATA
This key may be used to sign data.- See Also:
- Constant Field Values
-
ENCRYPT_COMMS
public static final int ENCRYPT_COMMS
This key may be used to encrypt communications.- See Also:
- Constant Field Values
-
ENCRYPT_STORAGE
public static final int ENCRYPT_STORAGE
This key may be used to encrypt storage.- See Also:
- Constant Field Values
-
SPLIT
public static final int SPLIT
The private component of this key may have been split by a secret-sharing mechanism.- See Also:
- Constant Field Values
-
AUTHENTICATION
public static final int AUTHENTICATION
This key may be used for authentication.- See Also:
- Constant Field Values
-
SHARED
public static final int SHARED
The private component of this key may be in the possession of more than one person.- See Also:
- Constant Field Values
-
-