/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Date value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Long value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, String value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Boolean value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Double value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Integer value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Double value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Long value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Date value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, String value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Boolean value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Claim value. * * @param name the Claim's name. * @param value the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withClaim(String name, Integer value) throws IllegalArgumentException { assertNonNull(name); addClaim(name, value); return this; }
/** * Add a custom Array Claim with the given items. * * @param name the Claim's name. * @param items the Claim's value. * @return this same Builder instance. * @throws IllegalArgumentException if the name is null. */ public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException { assertNonNull(name); addClaim(name, items); return this; }