org.wso2.carbon.identity.discovery.OIDProviderConfigResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.wso2.carbon.identity.discovery Show documentation
Show all versions of org.wso2.carbon.identity.discovery Show documentation
OpenId Connect Discovery Bundle
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.discovery;
import java.util.HashMap;
import java.util.Map;
/**
* OIDProviderConfigResponse contains the patameters to be written
* as specified in the spec at https://openid.net/specs/openid-connect-discovery-1_0.html
* Values are corresponding to the entries specified in the DicoveryConstants class
*/
public class OIDProviderConfigResponse {
private String issuer;
private String authorizationEndpoint;
private String tokenEndpoint;
private String userinfoEndpoint;
private String jwksUri;
private String registrationEndpoint;
private String[] scopesSupported;
private String[] responseTypesSupported;
private String[] responseModesSupported;
private String[] grantTypesSupported;
private String[] acrValuesSupported;
private String[] subjectTypesSupported;
private String[] idTokenSigningAlgValuesSupported;
private String[] idTokenEncryptionAlgValuesSupported;
private String[] idTokenEncryptionEncValuesSupported;
private String[] userinfoSigningAlgValuesSupported;
private String[] userinfoEncryptionAlgValuesSupported;
private String[] userinfoEncryptionEncValuesSupported;
private String[] requestObjectSigningAlgValuesSupported;
private String[] requestObjectEncryptionAlgValuesSupported;
private String[] requestObjectEncryptionEncValuesSupported;
private String[] tokenEndpointAuthMethodsSupported;
private String[] tokenEndpointAuthSigningAlgValuesSupported;
private String[] displayValuesSupported;
private String[] claimTypesSupported;
private String[] claimsSupported;
private String serviceDocumentation;
private String[] claimsLocalesSupported;
private String[] uiLocalesSupported;
private String claimsParameterSupported;
private String requestParameterSupported;
private String requestUriParameterSupported;
private String requireRequestUriRegistration;
private String opPolicyUri;
private String opTosUri;
private String checkSessionIframe;
private String endSessionEndpoint;
public String getIssuer() {
return issuer;
}
public void setIssuer(String issuer) {
this.issuer = issuer;
}
public String getAuthorizationEndpoint() {
return authorizationEndpoint;
}
public void setAuthorizationEndpoint(String authorizationEndpoint) {
this.authorizationEndpoint = authorizationEndpoint;
}
public String getTokenEndpoint() {
return tokenEndpoint;
}
public void setTokenEndpoint(String tokenEndpoint) {
this.tokenEndpoint = tokenEndpoint;
}
public String getUserinfoEndpoint() {
return userinfoEndpoint;
}
public void setUserinfoEndpoint(String userinfoEndpoint) {
this.userinfoEndpoint = userinfoEndpoint;
}
public String getJwksUri() {
return jwksUri;
}
public void setJwksUri(String jwksUri) {
this.jwksUri = jwksUri;
}
public String getRegistrationEndpoint() {
return registrationEndpoint;
}
public void setRegistrationEndpoint(String registrationEndpoint) {
this.registrationEndpoint = registrationEndpoint;
}
public String[] getScopesSupported() {
return scopesSupported;
}
public void setScopesSupported(String[] scopesSupported) {
this.scopesSupported = scopesSupported;
}
public String[] getResponseTypesSupported() {
return responseTypesSupported;
}
public void setResponseTypesSupported(String[] responseTypesSupported) {
this.responseTypesSupported = responseTypesSupported;
}
public String[] getResponseModesSupported() {
return responseModesSupported;
}
public void setResponseModesSupported(String[] responseModesSupported) {
this.responseModesSupported = responseModesSupported;
}
public String[] getGrantTypesSupported() {
return grantTypesSupported;
}
public void setGrantTypesSupported(String[] grantTypesSupported) {
this.grantTypesSupported = grantTypesSupported;
}
public String[] getAcrValuesSupported() {
return acrValuesSupported;
}
public void setAcrValuesSupported(String[] acrValuesSupported) {
this.acrValuesSupported = acrValuesSupported;
}
public String[] getSubjectTypesSupported() {
return subjectTypesSupported;
}
public void setSubjectTypesSupported(String[] subjectTypesSupported) {
this.subjectTypesSupported = subjectTypesSupported;
}
public String[] getIdTokenSigningAlgValuesSupported() {
return idTokenSigningAlgValuesSupported;
}
public void setIdTokenSigningAlgValuesSupported(String[] idTokenSigningAlgValuesSupported) {
this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported;
}
public String[] getIdTokenEncryptionAlgValuesSupported() {
return idTokenEncryptionAlgValuesSupported;
}
public void setIdTokenEncryptionAlgValuesSupported(String[] idTokenEncryptionAlgValuesSupported) {
this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported;
}
public String[] getIdTokenEncryptionEncValuesSupported() {
return idTokenEncryptionEncValuesSupported;
}
public void setIdTokenEncryptionEncValuesSupported(String[] idTokenEncryptionEncValuesSupported) {
this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported;
}
public String[] getUserinfoSigningAlgValuesSupported() {
return userinfoSigningAlgValuesSupported;
}
public void setUserinfoSigningAlgValuesSupported(String[] userinfoSigningAlgValuesSupported) {
this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported;
}
public String[] getUserinfoEncryptionAlgValuesSupported() {
return userinfoEncryptionAlgValuesSupported;
}
public void setUserinfoEncryptionAlgValuesSupported(String[] userinfoEncryptionAlgValuesSupported) {
this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported;
}
public String[] getUserinfoEncryptionEncValuesSupported() {
return userinfoEncryptionEncValuesSupported;
}
public void setUserinfoEncryptionEncValuesSupported(String[] userinfoEncryptionEncValuesSupported) {
this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported;
}
public String[] getRequestObjectSigningAlgValuesSupported() {
return requestObjectSigningAlgValuesSupported;
}
public void setRequestObjectSigningAlgValuesSupported(String[] requestObjectSigningAlgValuesSupported) {
this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported;
}
public String[] getRequestObjectEncryptionAlgValuesSupported() {
return requestObjectEncryptionAlgValuesSupported;
}
public void setRequestObjectEncryptionAlgValuesSupported(String[]
requestObjectEncryptionAlgValuesSupported) {
this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported;
}
public String[] getRequestObjectEncryptionEncValuesSupported() {
return requestObjectEncryptionEncValuesSupported;
}
public void setRequestObjectEncryptionEncValuesSupported(String[]
requestObjectEncryptionEncValuesSupported) {
this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported;
}
public String[] getTokenEndpointAuthMethodsSupported() {
return tokenEndpointAuthMethodsSupported;
}
public void setTokenEndpointAuthMethodsSupported(String[] tokenEndpointAuthMethodsSupported) {
this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported;
}
public String[] getTokenEndpointAuthSigningAlgValuesSupported() {
return tokenEndpointAuthSigningAlgValuesSupported;
}
public void setTokenEndpointAuthSigningAlgValuesSupported(String[]
tokenEndpointAuthSigningAlgValuesSupported) {
this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported;
}
public String[] getDisplayValuesSupported() {
return displayValuesSupported;
}
public void setDisplayValuesSupported(String[] displayValuesSupported) {
this.displayValuesSupported = displayValuesSupported;
}
public String[] getClaimTypesSupported() {
return claimTypesSupported;
}
public void setClaimTypesSupported(String[] claimTypesSupported) {
this.claimTypesSupported = claimTypesSupported;
}
public String[] getClaimsSupported() {
return claimsSupported;
}
public void setClaimsSupported(String[] claimsSupported) {
this.claimsSupported = claimsSupported;
}
public String getServiceDocumentation() {
return serviceDocumentation;
}
public void setServiceDocumentation(String serviceDocumentation) {
this.serviceDocumentation = serviceDocumentation;
}
public String[] getClaimsLocalesSupported() {
return claimsLocalesSupported;
}
public void setClaimsLocalesSupported(String[] claimsLocalesSupported) {
this.claimsLocalesSupported = claimsLocalesSupported;
}
public String[] getUiLocalesSupported() {
return uiLocalesSupported;
}
public void setUiLocalesSupported(String[] uiLocalesSupported) {
this.uiLocalesSupported = uiLocalesSupported;
}
public String getClaimsParameterSupported() {
return claimsParameterSupported;
}
public void setClaimsParameterSupported(String claimsParameterSupported) {
this.claimsParameterSupported = claimsParameterSupported;
}
public String getRequestParameterSupported() {
return requestParameterSupported;
}
public void setRequestParameterSupported(String requestParameterSupported) {
this.requestParameterSupported = requestParameterSupported;
}
public String getRequestUriParameterSupported() {
return requestUriParameterSupported;
}
public void setRequestUriParameterSupported(String requestUriParameterSupported) {
this.requestUriParameterSupported = requestUriParameterSupported;
}
public String getRequireRequestUriRegistration() {
return requireRequestUriRegistration;
}
public void setRequireRequestUriRegistration(String requireRequestUriRegistration) {
this.requireRequestUriRegistration = requireRequestUriRegistration;
}
public String getOpPolicyUri() {
return opPolicyUri;
}
public void setOpPolicyUri(String opPolicyUri) {
this.opPolicyUri = opPolicyUri;
}
public String getOpTosUri() {
return opTosUri;
}
public void setOpTosUri(String opTosUri) {
this.opTosUri = opTosUri;
}
public String getCheckSessionIframe() {
return checkSessionIframe;
}
public void setCheckSessionIframe(String checkSessionIframe) {
this.checkSessionIframe = checkSessionIframe;
}
public String getEndSessionEndpoint() {
return endSessionEndpoint;
}
public void setEndSessionEndpoint(String endSessionEndpoint) {
this.endSessionEndpoint = endSessionEndpoint;
}
public Map getConfigMap() {
Map configMap = new HashMap();
configMap.put(DiscoveryConstants.ISSUER.toLowerCase(), this.issuer);
configMap.put(DiscoveryConstants.ACR_VALUES_SUPPORTED.toLowerCase(), this.acrValuesSupported);
configMap.put(DiscoveryConstants.AUTHORIZATION_ENDPOINT.toLowerCase(), this.authorizationEndpoint);
configMap.put(DiscoveryConstants.CLAIM_TYPES_SUPPORTED.toLowerCase(), this.claimTypesSupported);
configMap.put(DiscoveryConstants.CLAIMS_LOCALES_SUPPORTED.toLowerCase(), this.claimsLocalesSupported);
configMap.put(DiscoveryConstants.CLAIMS_PARAMETER_SUPPORTED.toLowerCase(), this.claimsParameterSupported);
configMap.put(DiscoveryConstants.CLAIMS_SUPPORTED.toLowerCase(), this.claimsSupported);
configMap.put(DiscoveryConstants.DISPLAY_VALUES_SUPPORTED.toLowerCase(), this.displayValuesSupported);
configMap.put(DiscoveryConstants.GRANT_TYPES_SUPPORTED.toLowerCase(), this.grantTypesSupported);
configMap.put(DiscoveryConstants.ID_TOKEN_ENCRYPTION_ALG_VALUES_SUPPORTED.toLowerCase(), this
.idTokenEncryptionAlgValuesSupported);
configMap.put(DiscoveryConstants.ID_TOKEN_ENCRYPTION_ENC_VALUES_SUPPORTED.toLowerCase(), this
.idTokenEncryptionEncValuesSupported);
configMap.put(DiscoveryConstants.ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED.toLowerCase(), this
.idTokenSigningAlgValuesSupported);
configMap.put(DiscoveryConstants.JWKS_URI.toLowerCase(), this.jwksUri);
configMap.put(DiscoveryConstants.OP_POLICY_URI.toLowerCase(), this.opPolicyUri);
configMap.put(DiscoveryConstants.OP_TOS_URI.toLowerCase(), this.opTosUri);
configMap.put(DiscoveryConstants.REGISTRATION_ENDPOINT.toLowerCase(), this.registrationEndpoint);
configMap.put(DiscoveryConstants.REQUEST_OBJECT_ENCRYPTION_ALG_VALUES_SUPPORTED.toLowerCase(), this
.requestObjectEncryptionAlgValuesSupported);
configMap.put(DiscoveryConstants.REQUEST_OBJECT_ENCRYPTION_ENC_VALUES_SUPPORTED.toLowerCase(), this
.requestObjectEncryptionEncValuesSupported);
configMap.put(DiscoveryConstants.REQUEST_OBJECT_SIGNING_ALG_VALUES_SUPPORTED.toLowerCase(), this
.requestObjectSigningAlgValuesSupported);
configMap.put(DiscoveryConstants.REQUEST_PARAMETER_SUPPORTED.toLowerCase(), this.requestParameterSupported);
configMap.put(DiscoveryConstants.REQUEST_URI_PARAMETER_SUPPORTED.toLowerCase(), this
.requestUriParameterSupported);
configMap.put(DiscoveryConstants.REQUIRE_REQUEST_URI_REGISTRATION.toLowerCase(), this
.requireRequestUriRegistration);
configMap.put(DiscoveryConstants.RESPONSE_MODES_SUPPORTED.toLowerCase(), this.responseModesSupported);
configMap.put(DiscoveryConstants.RESPONSE_TYPES_SUPPORTED.toLowerCase(), this.responseTypesSupported);
configMap.put(DiscoveryConstants.SCOPES_SUPPORTED.toLowerCase(), this.scopesSupported);
configMap.put(DiscoveryConstants.SERVICE_DOCUMENTATION.toLowerCase(), this.serviceDocumentation);
configMap.put(DiscoveryConstants.SUBJECT_TYPES_SUPPORTED.toLowerCase(), this.subjectTypesSupported);
configMap.put(DiscoveryConstants.TOKEN_ENDPOINT.toLowerCase(), this.tokenEndpoint);
configMap.put(DiscoveryConstants.TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED.toLowerCase(), this
.tokenEndpointAuthMethodsSupported);
configMap.put(DiscoveryConstants.TOKEN_ENDPOINT_AUTH_SIGNING_ALG_VALUES_SUPPORTED.toLowerCase(), this
.tokenEndpointAuthSigningAlgValuesSupported);
configMap.put(DiscoveryConstants.UI_LOCALES_SUPPORTED.toLowerCase(), this.uiLocalesSupported);
configMap.put(DiscoveryConstants.USERINFO_ENCRYPTION_ALG_VALUES_SUPPORTED.toLowerCase(), this
.userinfoEncryptionAlgValuesSupported);
configMap.put(DiscoveryConstants.USERINFO_ENCRYPTION_ENC_VALUES_SUPPORTED.toLowerCase(), this
.userinfoEncryptionEncValuesSupported);
configMap.put(DiscoveryConstants.USERINFO_ENDPOINT.toLowerCase(), this.userinfoEndpoint);
configMap.put(DiscoveryConstants.CHECK_SESSION_IFRAME.toLowerCase(), this.checkSessionIframe);
configMap.put(DiscoveryConstants.END_SESSION_ENDPOINT.toLowerCase(), this.endSessionEndpoint);
configMap.put(DiscoveryConstants.USERINFO_SIGNING_ALG_VALUES_SUPPORTED.toLowerCase(), this
.userinfoSigningAlgValuesSupported);
return configMap;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy