Package org.bouncycastle.bcpg.sig
Class KeyFlags
java.lang.Object
org.bouncycastle.bcpg.SignatureSubpacket
org.bouncycastle.bcpg.sig.KeyFlags
Packet holding the key flag values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
-
Constructor Summary
Constructors -
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_OTHER- See Also:
-
SIGN_DATA
public static final int SIGN_DATA- See Also:
-
ENCRYPT_COMMS
public static final int ENCRYPT_COMMS- See Also:
-
ENCRYPT_STORAGE
public static final int ENCRYPT_STORAGE- See Also:
-
SPLIT
public static final int SPLIT- See Also:
-
AUTHENTICATION
public static final int AUTHENTICATION- See Also:
-
SHARED
public static final int SHARED- 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.
-