-
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.
Added support for HRI phase 2 changes (#668)
- Loading branch information
Showing
7 changed files
with
106 additions
and
1 deletion.
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
54 changes: 54 additions & 0 deletions
54
src/main/java/com/auth0/json/mgmt/resourceserver/ProofOfPossession.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,54 @@ | ||
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; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ProofOfPossession { | ||
|
||
@JsonProperty("mechanism") | ||
private String mechanism; | ||
@JsonProperty("required") | ||
private Boolean required; | ||
|
||
@JsonCreator | ||
public ProofOfPossession(@JsonProperty("mechanism") String mechanism, @JsonProperty("required") Boolean required) { | ||
this.mechanism = mechanism; | ||
this.required = required; | ||
} | ||
|
||
/** | ||
* Getter for the mechanism of the Proof of Possession. | ||
* @return the mechanism of the Proof of Possession. | ||
*/ | ||
public String getMechanism() { | ||
return mechanism; | ||
} | ||
|
||
/** | ||
* Setter for the mechanism of the Proof of Possession. | ||
* @param mechanism the mechanism of the Proof of Possession. | ||
*/ | ||
public void setMechanism(String mechanism) { | ||
this.mechanism = mechanism; | ||
} | ||
|
||
/** | ||
* Getter for the required flag of the Proof of Possession. | ||
* @return the required flag of the Proof of Possession. | ||
*/ | ||
public Boolean getRequired() { | ||
return required; | ||
} | ||
|
||
/** | ||
* Setter for the required flag of the Proof of Possession. | ||
* @param required the required flag of the Proof of Possession. | ||
*/ | ||
public void setRequired(Boolean required) { | ||
this.required = required; | ||
} | ||
} |
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
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