Skip to content

Commit

Permalink
fix javadoc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Jun 27, 2019
1 parent d72146c commit 2c9c7ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/auth0/client/mgmt/GrantsEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class GrantsEntity extends BaseManagementEntity {
* See https://auth0.com/docs/api/management/v2#!/Grants/get_grants
*
* @param userId The user id of the grants to retrieve
* @param filter the filter to use. Can be null.
* @return a Request to execute.
*/
public Request<GrantsPage> list(String userId, GrantsFilter filter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class ResourceServerEntity extends BaseManagementEntity {
* Creates request to fetch all resource servers.
* See <a href=https://auth0.com/docs/api/management/v2#!/Resource_Servers/get_resource_servers>API documentation</a>
*
* @param filter the filter to use. Can be null.
* @return request to execute
*/
public Request<ResourceServersPage> list(ResourceServersFilter filter) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/auth0/json/mgmt/EmailTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public String getName() {

/**
* Sets the name of the template.
*
* @param name the name to set for this template
*/
@JsonProperty("template")
public void setName(String name) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/auth0/json/mgmt/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public List<String> getWebOrigins() {
/**
* Setter for the list of grant types for the application.
* See allowed values at https://auth0.com/docs/applications/application-grant-types.
*
* @param grantTypes the list of grant types to set.
*/
@JsonProperty("grant_types")
public void setGrantTypes(List<String> grantTypes) {
Expand All @@ -297,7 +299,7 @@ public void setGrantTypes(List<String> grantTypes) {
/**
* Getter for the list of grant types for the application.
*
* @return the list of grant types.
* @return the list of grant types.
*/
@JsonProperty("grant_types")
public List<String> getGrantTypes() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/auth0/json/mgmt/users/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ public String getId() {
* Setter for the user's unique identifier. This is only valid when creating a new user, as the property can't change once set.
* The server will prepend the connection name and a pipe character before the given id value.
* i.e. For "auth0" connection with user id "123456789" the final user id would be "auth0|123456789".
*
* @param userId the id of the user
*/
@JsonProperty("user_id")
public void setId(String userId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public void shouldUpdateResourceServer() throws Exception {
resourceServer.setSigningAlgorithm("RS256");
resourceServer.setSigningSecret("secret");
resourceServer.setAllowOfflineAccess(false);
resourceServer.setEnforcePolicies(true);
resourceServer.setSkipConsentForVerifiableFirstPartyClients(false);
resourceServer.setTokenDialect("access_token");
resourceServer.setTokenLifetime(0);
resourceServer.setVerificationLocation("verification_location");
Request<ResourceServer> request = api.resourceServers()
Expand All @@ -123,7 +125,7 @@ public void shouldUpdateResourceServer() throws Exception {
assertThat(recordedRequest, hasHeader("Authorization", "Bearer apiToken"));

Map<String, Object> body = bodyFromRequest(recordedRequest);
assertThat(body.size(), is(10));
assertThat(body.size(), is(12));
assertThat(body, hasEntry("identifier", (Object) "https://api.my-company.com/api/v2/"));

assertThat(response.getIdentifier(), is("https://api.my-company.com/api/v2/"));
Expand Down

0 comments on commit 2c9c7ef

Please sign in to comment.