package com.github.sqrlserverjava.enums;

/**
 * Flags that can be applied to a particular SQRL identity
 * 
 * @author Dave Badia
 *
 */
public enum SqrlIdentityFlag {

	SQRL_AUTH_ENABLED(null), HARDLOCK(SqrlRequestOpt.hardlock);

	/**
	 * The SqrlClientOpt that corresponds to this flag, or null if there is no equivalent
	 */
	private final SqrlRequestOpt opt;

	private SqrlIdentityFlag(final SqrlRequestOpt opt) {
		this.opt = opt;
	}

	/**
	 * @returns true if this flag has an equivalent SqrlClientOpt
	 *
	 * @see {@link SqrlRequestOpt}
	 */

	public SqrlRequestOpt getSqrlClientOpt() {
		return this.opt;
	}

	/**
	 * @returns The SqrlClientOpt that corresponds to this flag, or null if there is no equivalent
	 */
	public boolean hasOptEquivalent() {
		return this.opt != null;
	}
}

@@ -162,16 +162,34 @@
 yFlag %7B%0A
+%09// @formatter:off
 %0A%09SQRL_A
@@ -211,42 +211,206 @@
 l), 
-HARDLOCK(SqrlRequestOpt.hardlock);
+%0A%0A%09/**%0A%09 *  @see %7B@link SqrlRequestOpt#hardlock%7D%0A%09 */%0A%09HARDLOCK(SqrlRequestOpt.hardlock),%0A%0A%09/**%0A%09 * @see %7B@link SqrlRequestOpt#sqrlonly%7D%0A%09 */%0A%09SQRLONLY(SqrlRequestOpt.sqrlonly),%0A%09;%0A%09// @formatter:on
 %0A%0A%09/

support sqrlonly flag