> +import org.jclouds.rest.AuthorizationException;
> +
> +import com.google.common.base.Function;
> +import com.google.common.base.Supplier;
> +import com.google.common.collect.ImmutableList;
> +
> +public final class ClaimsToAssertion implements Function<Object, String> {
> + private static final List<String> SUPPORTED_ALGS =
> ImmutableList.of("RS256", "none");
> +
> + private final Supplier<PrivateKey> privateKey;
> + private final Json json;
> + private final String alg;
> +
> + @Inject ClaimsToAssertion(@Named(JWS_ALG) String alg, @Authorization
> Supplier<PrivateKey> privateKey, Json json) {
> + this.alg = alg;
> + checkArgument(SUPPORTED_ALGS.contains(alg), "%s %s not in supported
> list", JWS_ALG, alg, SUPPORTED_ALGS);
Two `%s` and three args?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/96/files#r20546410