Class Feature<T extends ApplicationSession<T>>

java.lang.Object
com.yubico.yubikit.core.application.Feature<T>
Type Parameters:
T - The type of Session for which the Feature is relevant.
Direct Known Subclasses:
Feature.Versioned

public abstract class Feature<T extends ApplicationSession<T>> extends Object
A feature for a YubiKey application, which may not be supported by all YubiKeys.
  • Field Details

    • featureName

      protected final String featureName
  • Constructor Details

    • Feature

      protected Feature(String featureName)
  • Method Details

    • getFeatureName

      public String getFeatureName()
      Get a human readable name of the feature.
      Returns:
      the name of the feature
    • isSupportedBy

      public abstract boolean isSupportedBy(Version version)
      Checks if the Feature is supported by the given Application version.
      Parameters:
      version - the version of the Application to check support for.
      Returns:
      true if the Feature is supported, false if not
    • getRequiredMessage

      protected String getRequiredMessage()