@@ -40,7 +40,7 @@ public class Auth {
4040 public static class TokenRequest implements Serializable {
4141
4242 @ Getter private UUID id ;
43- @ Getter private List <String > polices ;
43+ @ Getter private List <String > policies ;
4444 @ Getter private Map <String , String > meta ;
4545 @ Getter private Boolean noParent ;
4646 @ Getter private Boolean noDefaultPolicy ;
@@ -59,11 +59,11 @@ public TokenRequest id(final UUID id) {
5959 }
6060
6161 /**
62- * @param polices (optional) A list of policies for the token. This must be a subset of the policies belonging to the token
63- * @return This object, with its polices field populated
62+ * @param policies (optional) A list of policies for the token. This must be a subset of the policies belonging to the token
63+ * @return This object, with its policies field populated
6464 */
65- public TokenRequest polices (final List <String > polices ) {
66- this .polices = polices ;
65+ public TokenRequest policies (final List <String > policies ) {
66+ this .policies = policies ;
6767 return this ;
6868 }
6969
@@ -189,8 +189,8 @@ public AuthResponse createToken(final TokenRequest tokenRequest, final String to
189189 final JsonObject jsonObject = Json .object ();
190190
191191 if (tokenRequest .id != null ) jsonObject .add ("id" , tokenRequest .id .toString ());
192- if (tokenRequest .polices != null && !tokenRequest .polices .isEmpty ()) {
193- jsonObject .add ("policies" , Json .array (tokenRequest .polices .toArray (new String [tokenRequest .polices .size ()])));//NOPMD
192+ if (tokenRequest .policies != null && !tokenRequest .policies .isEmpty ()) {
193+ jsonObject .add ("policies" , Json .array (tokenRequest .policies .toArray (new String [tokenRequest .policies .size ()])));//NOPMD
194194 }
195195 if (tokenRequest .meta != null && !tokenRequest .meta .isEmpty ()) {
196196 final JsonObject metaMap = Json .object ();
0 commit comments