-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
76 changed files
with
1,619 additions
and
151 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
perun-base/src/main/java/cz/metacentrum/perun/core/api/OidcConfig.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,108 @@ | ||
package cz.metacentrum.perun.core.api; | ||
|
||
import java.util.Objects; | ||
|
||
public class OidcConfig { | ||
|
||
private String clientId; | ||
private String oidcDeviceCodeUri; | ||
private String oidcTokenEndpointUri; | ||
private String oidcTokenRevokeEndpointUri; | ||
private String acrValues; | ||
private String scopes; | ||
private String perunApiEndpoint; | ||
private boolean enforceMfa; | ||
|
||
public OidcConfig() {} | ||
public String getClientId() { | ||
return clientId; | ||
} | ||
|
||
public void setClientId(String clientId) { | ||
this.clientId = clientId; | ||
} | ||
|
||
public String getOidcDeviceCodeUri() { | ||
return oidcDeviceCodeUri; | ||
} | ||
|
||
public void setOidcDeviceCodeUri(String oidcDeviceCodeUri) { | ||
this.oidcDeviceCodeUri = oidcDeviceCodeUri; | ||
} | ||
|
||
public String getOidcTokenEndpointUri() { | ||
return oidcTokenEndpointUri; | ||
} | ||
|
||
public void setOidcTokenEndpointUri(String oidcTokenEndpointUri) { | ||
this.oidcTokenEndpointUri = oidcTokenEndpointUri; | ||
} | ||
|
||
public String getOidcTokenRevokeEndpointUri() { | ||
return oidcTokenRevokeEndpointUri; | ||
} | ||
|
||
public void setOidcTokenRevokeEndpointUri(String oidcTokenRevokeEndpointUri) { | ||
this.oidcTokenRevokeEndpointUri = oidcTokenRevokeEndpointUri; | ||
} | ||
|
||
public String getAcrValues() { | ||
return acrValues; | ||
} | ||
|
||
public void setAcrValues(String acrValues) { | ||
this.acrValues = acrValues; | ||
} | ||
|
||
public String getScopes() { | ||
return scopes; | ||
} | ||
|
||
public void setScopes(String scopes) { | ||
this.scopes = scopes; | ||
} | ||
|
||
public String getPerunApiEndpoint() { | ||
return perunApiEndpoint; | ||
} | ||
|
||
public void setPerunApiEndpoint(String perunApiEndpoint) { | ||
this.perunApiEndpoint = perunApiEndpoint; | ||
} | ||
|
||
public boolean getEnforceMfa() { | ||
return enforceMfa; | ||
} | ||
|
||
public void setEnforceMfa(boolean enforceMfa) { | ||
this.enforceMfa = enforceMfa; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
OidcConfig that = (OidcConfig) o; | ||
return Objects.equals(getClientId(), that.getClientId()) && Objects.equals(getOidcDeviceCodeUri(), that.getOidcDeviceCodeUri()) && Objects.equals(getOidcTokenEndpointUri(), that.getOidcTokenEndpointUri()) && Objects.equals(getOidcTokenRevokeEndpointUri(), that.getOidcTokenRevokeEndpointUri()) | ||
&& Objects.equals(getPerunApiEndpoint(), that.getPerunApiEndpoint()) && Objects.equals(getAcrValues(), that.getAcrValues()) && Objects.equals(getScopes(), that.getScopes()) && Objects.equals(getEnforceMfa(), that.getEnforceMfa()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getClientId(), getOidcDeviceCodeUri(), getOidcTokenEndpointUri(), getOidcTokenRevokeEndpointUri(), getPerunApiEndpoint(), getAcrValues(), getScopes(), getEnforceMfa()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OidcConfig{" + | ||
"clientId='" + clientId + '\'' + | ||
", oidcDeviceCodeUri='" + oidcDeviceCodeUri + '\'' + | ||
", oidcTokenEndpointUri='" + oidcTokenEndpointUri + '\'' + | ||
", oidcTokenRevokeEndpointUri='" + oidcTokenRevokeEndpointUri + '\'' + | ||
", acrValues='" + acrValues + '\'' + | ||
", scopes='" + scopes + '\'' + | ||
", perunApiEndpoint='" + perunApiEndpoint + '\'' + | ||
", enforceMfa='" + enforceMfa + '\'' + | ||
'}'; | ||
} | ||
} |
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.