Package org.bouncycastle.bcpg.sig
Class KeyFlags
java.lang.Object
org.bouncycastle.bcpg.SignatureSubpacket
org.bouncycastle.bcpg.sig.KeyFlags
Signature Subpacket encoding the capabilities / intended uses of a key.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
CERTIFY_OTHER
public static final int CERTIFY_OTHERThis 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_DATAThis key may be used to sign data.- See Also:
-
ENCRYPT_COMMS
public static final int ENCRYPT_COMMSThis key may be used to encrypt communications.- See Also:
-
ENCRYPT_STORAGE
public static final int ENCRYPT_STORAGEThis key may be used to encrypt storage.- See Also:
-
SPLIT
public static final int SPLITThe private component of this key may have been split by a secret-sharing mechanism.- See Also:
-
AUTHENTICATION
public static final int AUTHENTICATIONThis key may be used for authentication.- See Also:
-
SHARED
public static final int SHAREDThe 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.
-