-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-4763] - Add support for HRI Management API changes (#635)
- Loading branch information
1 parent
c050bf2
commit 90fb5a0
Showing
19 changed files
with
724 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/com/auth0/json/mgmt/client/SelfSignedTLSClientAuth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.auth0.json.mgmt.client; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Class that represents an Auth0 Application self-signed TLS client authentication method. Related to the {@link com.auth0.client.mgmt.ClientsEntity} entity. | ||
*/ | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class SelfSignedTLSClientAuth { | ||
|
||
@JsonProperty("credentials") | ||
private List<Credential> credentials; | ||
|
||
/** | ||
* Create a new instance | ||
* @param credentials the credentials to use | ||
*/ | ||
public SelfSignedTLSClientAuth(@JsonProperty("credentials") List<Credential> credentials) { | ||
this.credentials = credentials; | ||
} | ||
|
||
/** | ||
* @return the credentials | ||
*/ | ||
public List<Credential> getCredentials() { | ||
return credentials; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/com/auth0/json/mgmt/client/SignedRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.auth0.json.mgmt.client; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Class that represents an Auth0 Application signed request object. Related to the {@link com.auth0.client.mgmt.ClientsEntity} entity. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class SignedRequest { | ||
|
||
@JsonProperty("required") | ||
private Boolean required; | ||
@JsonProperty("credentials") | ||
private List<Credential> credentials; | ||
|
||
/** | ||
* @return the value of the {@code credentials} field | ||
*/ | ||
public List<Credential> getCredentials() { | ||
return credentials; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code credentials} field | ||
* | ||
* @param credentials the value of the {@code credentials} field | ||
*/ | ||
public void setCredentials(List<Credential> credentials) { | ||
this.credentials = credentials; | ||
} | ||
|
||
public Boolean getRequired() { | ||
return required; | ||
} | ||
|
||
public void setRequired(Boolean required) { | ||
this.required = required; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/auth0/json/mgmt/client/TLSClientAuth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.auth0.json.mgmt.client; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Class that represents an Auth0 Application TLS client authentication method. Related to the {@link com.auth0.client.mgmt.ClientsEntity} entity. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class TLSClientAuth { | ||
@JsonProperty("credentials") | ||
private List<Credential> credentials; | ||
|
||
/** | ||
* Create a new instance | ||
* @param credentials the credentials to use | ||
*/ | ||
public TLSClientAuth(@JsonProperty("credentials") List<Credential> credentials) { | ||
this.credentials = credentials; | ||
} | ||
|
||
/** | ||
* @return the credentials | ||
*/ | ||
public List<Credential> getCredentials() { | ||
return credentials; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/auth0/json/mgmt/resourceserver/AuthorizationDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.auth0.json.mgmt.resourceserver; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Class that represents the authorization details associated with a {@link ResourceServer} | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class AuthorizationDetails { | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
/** | ||
* Create a new instance. | ||
* @param type the value of the {@code type} field. | ||
*/ | ||
@JsonCreator | ||
public AuthorizationDetails(@JsonProperty("type") String type) { | ||
this.type = type; | ||
} | ||
|
||
/** | ||
* @return the value of the {@code type} field | ||
*/ | ||
public String getType() { | ||
return type; | ||
} | ||
} |
99 changes: 99 additions & 0 deletions
99
src/main/java/com/auth0/json/mgmt/resourceserver/EncryptionKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package com.auth0.json.mgmt.resourceserver; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Class that represents the encryption key associated with a {@link TokenEncryption} | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class EncryptionKey { | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
@JsonProperty("alg") | ||
private String alg; | ||
@JsonProperty("pem") | ||
private String pem; | ||
@JsonProperty("kid") | ||
private String kid; | ||
@JsonProperty("thumbprint_sha256") | ||
private String thumbprintSha256; | ||
|
||
/** | ||
* @return the value of the {@code name} field. | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code name} field. | ||
* @param name the value of the {@code name} field. | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* @return the value of the {@code alg} field. | ||
*/ | ||
public String getAlg() { | ||
return alg; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code alg} field. | ||
* @param alg the value of the {@code alg} field. | ||
*/ | ||
public void setAlg(String alg) { | ||
this.alg = alg; | ||
} | ||
|
||
/** | ||
* @return the value of the {@code pem} field. | ||
*/ | ||
public String getPem() { | ||
return pem; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code pem} field. | ||
* @param pem the value of the {@code pem} field. | ||
*/ | ||
public void setPem(String pem) { | ||
this.pem = pem; | ||
} | ||
|
||
/** | ||
* @return the value of the {@code kid} field. | ||
*/ | ||
public String getKid() { | ||
return kid; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code kid} field. | ||
* @param kid the value of the {@code kid} field. | ||
*/ | ||
public void setKid(String kid) { | ||
this.kid = kid; | ||
} | ||
|
||
/** | ||
* @return the value of the {@code thumbprint_sha256} field. | ||
*/ | ||
public String getThumbprintSha256() { | ||
return thumbprintSha256; | ||
} | ||
|
||
/** | ||
* Sets the value of the {@code thumbprint_sha256} field. | ||
* @param thumbprintSha256 the value of the {@code thumbprint_sha256} field. | ||
*/ | ||
public void setThumbprintSha256(String thumbprintSha256) { | ||
this.thumbprintSha256 = thumbprintSha256; | ||
} | ||
} |
Oops, something went wrong.