Package org.bouncycastle.bcpg.sig

## Class Features

- java.lang.Object
- - org.bouncycastle.bcpg.SignatureSubpacket
  - - org.bouncycastle.bcpg.sig.Features

-     public class Features
      extends SignatureSubpacket

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static byte` | `FEATURE_MODIFICATION_DETECTION` | Identifier for the modification detection feature

    - ### Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket

      `data`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Features​(boolean critical, boolean isLongLength, byte[] data)` |
    `Features​(boolean critical, byte feature)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `supportsFeature​(byte feature)` | Returns if a particular feature is supported.
    `boolean` | `supportsModificationDetection()` | Returns if modification detection is supported.

    - ### 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 Detail

    - #### FEATURE_MODIFICATION_DETECTION

          public static final byte FEATURE_MODIFICATION_DETECTION

      Identifier for the modification detection feature
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Features

          public Features​(boolean critical,
                          boolean isLongLength,
                          byte[] data)

    - #### Features

          public Features​(boolean critical,
                          byte feature)

  - ### Method Detail

    - #### supportsModificationDetection

          public boolean supportsModificationDetection()

      Returns if modification detection is supported.

    - #### supportsFeature

          public boolean supportsFeature​(byte feature)

      Returns if a particular feature is supported.