> +import java.security.NoSuchAlgorithmException; > +import java.util.List; > + > +import com.google.common.collect.ImmutableList; > + > +/** > + * JSON Web Signature Algorithms > + * <p/> > + * We only support <a > href="http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-36#section-3.1">required > + * or recommended algorithms, with the exception of {@code none}, which is > only supported in tests</a>. > + */ > +public final class JWSAlgorithms { > + /** This is a marker algorithm only supported in tests. */ > + public static final String NONE = "none"; > + > + private static final List<String> SUPPORTED_ALGS = > ImmutableList.of("ES256", "RS256", "HS256", NONE);
Curious: not using an enum here? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/90/files#r20220225
