-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jans-auth-server): added schema for ssa, corrected persistence, a…
- Loading branch information
Showing
9 changed files
with
260 additions
and
177 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
99 changes: 99 additions & 0 deletions
99
jans-auth-server/common/src/main/java/io/jans/as/common/model/ssa/SsaAttributes.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 io.jans.as.common.model.ssa; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author Yuriy Z | ||
*/ | ||
public class SsaAttributes { | ||
|
||
@JsonProperty("oneTimeUse") | ||
private Boolean oneTimeUse; | ||
|
||
@JsonProperty("rotateSsa") | ||
private Boolean rotateSsa; | ||
|
||
@JsonProperty("clientDn") | ||
private String clientDn; | ||
|
||
@JsonProperty("customAttributes") | ||
private Map<String, String> customAttributes; | ||
|
||
@JsonProperty("softwareId") | ||
private String softwareId; | ||
|
||
@JsonProperty("softwareRoles") | ||
private List<String> softwareRoles; | ||
|
||
@JsonProperty("grantTypes") | ||
private List<String> grantTypes; | ||
|
||
public List<String> getSoftwareRoles() { | ||
return softwareRoles; | ||
} | ||
|
||
public void setSoftwareRoles(List<String> softwareRoles) { | ||
this.softwareRoles = softwareRoles; | ||
} | ||
|
||
public List<String> getGrantTypes() { | ||
return grantTypes; | ||
} | ||
|
||
public void setGrantTypes(List<String> grantTypes) { | ||
this.grantTypes = grantTypes; | ||
} | ||
|
||
public String getSoftwareId() { | ||
return softwareId; | ||
} | ||
|
||
public void setSoftwareId(String softwareId) { | ||
this.softwareId = softwareId; | ||
} | ||
|
||
public Boolean getOneTimeUse() { | ||
return oneTimeUse; | ||
} | ||
|
||
public void setOneTimeUse(Boolean oneTimeUse) { | ||
this.oneTimeUse = oneTimeUse; | ||
} | ||
|
||
public Boolean getRotateSsa() { | ||
return rotateSsa; | ||
} | ||
|
||
public void setRotateSsa(Boolean rotateSsa) { | ||
this.rotateSsa = rotateSsa; | ||
} | ||
|
||
public String getClientDn() { | ||
return clientDn; | ||
} | ||
|
||
public void setClientDn(String clientDn) { | ||
this.clientDn = clientDn; | ||
} | ||
|
||
public Map<String, String> getCustomAttributes() { | ||
return customAttributes; | ||
} | ||
|
||
public void setCustomAttributes(Map<String, String> customAttributes) { | ||
this.customAttributes = customAttributes; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "SsaAttributes{" + | ||
"oneTimeUse=" + oneTimeUse + | ||
", rotateSsa=" + rotateSsa + | ||
", clientDn='" + clientDn + '\'' + | ||
", customAttributes=" + customAttributes + | ||
'}'; | ||
} | ||
} |
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
Oops, something went wrong.