Enum DocumentStatus

  • All Implemented Interfaces:
    com.yubico.internal.util.json.JsonStringSerializable, java.io.Serializable, java.lang.Comparable<DocumentStatus>

    public enum DocumentStatus
    extends java.lang.Enum<DocumentStatus>
    implements com.yubico.internal.util.json.JsonStringSerializable
    A representation of Web Authentication specification document statuses.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CANDIDATE_RECOMMENDATION
      A candidate recommendation is a specification release candidate.
      EDITORS_DRAFT
      An editor's draft is a changing work in progress.
      PROPOSED_RECOMMENDATION
      A proposed recommendation is a finished draft intended for release.
      RECOMMENDATION
      A recommendation is a finished and released specification.
      WORKING_DRAFT
      A working draft is a named snapshot of a particular state of an editor's draft.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toJsonString()
      Used by JSON serializer.
      static DocumentStatus valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DocumentStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • EDITORS_DRAFT

        public static final DocumentStatus EDITORS_DRAFT
        An editor's draft is a changing work in progress.
      • WORKING_DRAFT

        public static final DocumentStatus WORKING_DRAFT
        A working draft is a named snapshot of a particular state of an editor's draft.
      • CANDIDATE_RECOMMENDATION

        public static final DocumentStatus CANDIDATE_RECOMMENDATION
        A candidate recommendation is a specification release candidate.
      • PROPOSED_RECOMMENDATION

        public static final DocumentStatus PROPOSED_RECOMMENDATION
        A proposed recommendation is a finished draft intended for release.
      • RECOMMENDATION

        public static final DocumentStatus RECOMMENDATION
        A recommendation is a finished and released specification.
    • Method Detail

      • values

        public static DocumentStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DocumentStatus c : DocumentStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DocumentStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toJsonString

        public java.lang.String toJsonString()
        Used by JSON serializer.
        Specified by:
        toJsonString in interface com.yubico.internal.util.json.JsonStringSerializable